Skip to content

Commit

Permalink
Fix upcoming clippy lint (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris authored Jan 2, 2024
1 parent d33f663 commit 36a562c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions firewood/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,9 +889,7 @@ impl Db {
.position(|trie_hash| &trie_hash == root_hash));
}

let Some(nback) = nback else {
return None;
};
let nback = nback?;

let rlen = revisions.inner.len();
if rlen < nback {
Expand Down

0 comments on commit 36a562c

Please sign in to comment.