Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Nov 13, 2023
1 parent 63b705b commit 29645de
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions crates/orchestrator/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,14 @@ impl<T: FileSystem> Network<T> {

let para_chain_spec_local_path = if let Some(para_chain_spec_custom) = &options.chain_spec {
Some(para_chain_spec_custom.clone())
} else if let Some(para_spec_path) = &parachain.chain_spec_path {
Some(PathBuf::from(format!(
"{}/{}",
self.ns.base_dir().to_string_lossy(),
para_spec_path.to_string_lossy()
)))
} else {
if let Some(para_spec_path) = &parachain.chain_spec_path {
Some(PathBuf::from(format!(
"{}/{}",
self.ns.base_dir().to_string_lossy(),
para_spec_path.to_string_lossy()
)))
} else {
None
}
None
};

if let Some(para_spec_path) = para_chain_spec_local_path {
Expand Down

0 comments on commit 29645de

Please sign in to comment.