Skip to content

Commit

Permalink
relayer(evidence): exit early if chain type is not cosmos sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Oct 23, 2023
1 parent c42de92 commit e588311
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/relayer-cli/src/commands/evidence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ impl Runnable for EvidenceCmd {
.exit()
});

#[allow(irrefutable_let_patterns)]
if let ChainConfig::CosmosSdk(_) = chain_config {
if !matches!(chain_config, ChainConfig::CosmosSdk(_)) {
Output::error(format!(
"chain `{}` is not a Cosmos SDK chain",
self.chain_id
Expand Down

0 comments on commit e588311

Please sign in to comment.