Skip to content

Commit

Permalink
fix: redundant error
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Sep 27, 2024
1 parent 7f895c0 commit de143d8
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ where
let mut tx = self.write_transaction();
tx.storage_as_mut::<GasPriceMetadata>()
.insert(&block_height, metadata)
.map_err(|err| GasPriceError::CouldNotSetMetadata {
block_height,
source_error: err.into(),
})?;
tx.commit()
.and_then(|_| tx.commit())
.map_err(|err| GasPriceError::CouldNotSetMetadata {
block_height,
source_error: err.into(),
Expand Down

0 comments on commit de143d8

Please sign in to comment.