Skip to content

Commit

Permalink
map_or
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Nov 19, 2024
1 parent f07879e commit 29bb250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/trie/sparse/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl SparseStateTrie {
slot: B256,
proof: impl IntoIterator<Item = (Nibbles, Bytes)>,
) -> SparseStateTrieResult<()> {
if self.revealed.get(&account).map(|v| v.contains(&slot)).unwrap_or(false) {
if self.revealed.get(&account).map_or(false, |v| v.contains(&slot)) {
return Ok(());
}

Expand Down

0 comments on commit 29bb250

Please sign in to comment.