Skip to content

Commit

Permalink
Remove unneeded error conversion (paritytech#1527)
Browse files Browse the repository at this point in the history
  • Loading branch information
serban300 committed Apr 10, 2024
1 parent 2682615 commit 277c774
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bridges/relays/lib-substrate-relay/src/finality/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ impl<P: SubstrateFinalitySyncPipeline> SubstrateFinalityTarget<P> {
return Err(Error::BridgePalletIsHalted)
}

let is_initialized = P::FinalityEngine::is_initialized(&self.client)
.await
.map_err(|e| Error::Custom(e.to_string()))?;
let is_initialized = P::FinalityEngine::is_initialized(&self.client).await?;
if !is_initialized {
return Err(Error::BridgePalletIsNotInitialized)
}
Expand Down

0 comments on commit 277c774

Please sign in to comment.