Skip to content

Commit

Permalink
Remove unnecessary map_err
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy committed Jan 9, 2024
1 parent 1b510e4 commit 09bfffd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/rpc/src/eth/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ where
)
.await
.map_err(|err| internal_err(format!("{:?}", err)))?
.ok_or(internal_err("Failed to retrieve substrate block hash"))
.map_err(|err| internal_err(format!("{:?}", err)))?;
.ok_or(internal_err("Failed to retrieve substrate block hash"))?;

self.client
.runtime_api()
Expand Down

0 comments on commit 09bfffd

Please sign in to comment.