Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Sep 13, 2023
1 parent efc1e41 commit 9a75267
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cli/src/base_cli/commands/register_tcb_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,10 @@ impl RegisterTcbInfoCommand {
let fmspcs: Vec<Platform> = fmspcs.json().expect("Error parsing JSON");
println!("{:?}", fmspcs);
fmspcs.into_iter().map(|f| f.fmspc).collect()
} else if let Some(fmspc) = self.fmspc.clone() {
vec![fmspc]
} else {
if let Some(fmspc) = self.fmspc.clone() {
vec![fmspc]
} else {
panic!("must specify either '--all' or '--fmspc'");
}
panic!("must specify either '--all' or '--fmspc'");
};
let mut nonce = chain_api.get_nonce().unwrap();
let xt_hashes: Vec<(String, Option<Hash>)> = fmspcs
Expand Down

0 comments on commit 9a75267

Please sign in to comment.