Skip to content

Commit

Permalink
review feedback - remove unreachable else case
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviabheeman authored and azuchi committed Dec 26, 2023
1 parent 3c0ff25 commit 63e367d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cli/setup/compute_sig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,8 @@ impl<'a> ComputeSigCommand {

let hash = if let Some(ref block) = block {
block.header.signature_hash().to_vec()
} else if xfield != XField::None {
xfield.signature_hash().unwrap().to_vec()
} else {
return Err(Error::InvalidArgs(
"Either xfield or block is expected".to_string(),
));
xfield.signature_hash().unwrap().to_vec()
};

let signature = Vss::aggregate_and_verify_signature(
Expand Down

0 comments on commit 63e367d

Please sign in to comment.