mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
fix another clippy warning (#1448)
This commit is contained in:
committed by
Bastian Köcher
parent
631111ef7f
commit
ee5b692f72
@@ -332,8 +332,7 @@ async fn ensure_pallet_operating_mode<P: SubstrateFinalitySyncPipeline>(
|
||||
match (operational, finality_target.ensure_pallet_active().await) {
|
||||
(true, Ok(())) => Ok(()),
|
||||
(false, Err(SubstrateError::BridgePalletIsHalted)) => Ok(()),
|
||||
_ =>
|
||||
return Err(anyhow::format_err!(
|
||||
_ => Err(anyhow::format_err!(
|
||||
"Bridge GRANDPA pallet at {} is expected to be {}, but it isn't",
|
||||
P::TargetChain::NAME,
|
||||
if operational { "operational" } else { "halted" },
|
||||
|
||||
Reference in New Issue
Block a user