Skip to content

Commit

Permalink
Fix copy pasta
Browse files Browse the repository at this point in the history
  • Loading branch information
seadanda committed Oct 3, 2023
1 parent f208bb3 commit b1de92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus/polkadot-parachain/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ fn extract_parachain_id(id: &str) -> (&str, &str, Option<ParaId>) {
let (norm_id, orig_id, para) = if let Some(suffix) = id.strip_prefix(WESTEND_TEST_PARA_PREFIX) {
let para_id: u32 = suffix.parse().expect("Invalid parachain-id suffix");
(&id[..WESTEND_TEST_PARA_PREFIX.len() - 1], id, Some(para_id))
let (norm_id, orig_id, para) = if let Some(suffix) = id.strip_prefix(KUSAMA_TEST_PARA_PREFIX) {
} else if let Some(suffix) = id.strip_prefix(KUSAMA_TEST_PARA_PREFIX) {
let para_id: u32 = suffix.parse().expect("Invalid parachain-id suffix");
(&id[..KUSAMA_TEST_PARA_PREFIX.len() - 1], id, Some(para_id))
} else if let Some(suffix) = id.strip_prefix(POLKADOT_TEST_PARA_PREFIX) {
Expand Down

0 comments on commit b1de92d

Please sign in to comment.