Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renancloudwalk committed Apr 3, 2024
1 parent 2c7d9fb commit 682a0ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/eth/storage/hybrid/rocks_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ impl<K: Serialize + for<'de> Deserialize<'de> + std::hash::Hash + Eq, V: Seriali
};
let Ok(Some(value_bytes)) = self.db.get(serialized_key) else { return -1 };

match bincode::deserialize(&value_bytes).ok() {
Some(block_number) => block_number,
None => -1,
}
bincode::deserialize(&value_bytes).ok().unwrap_or(-1)
}

// Mimics the 'insert' functionality of a HashMap
Expand Down

0 comments on commit 682a0ad

Please sign in to comment.