Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolasHaimerl committed Aug 11, 2023
1 parent 6540f1e commit b37bb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycles-ledger/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ pub fn deduplicate(
.saturating_add(config::PERMITTED_DRIFT.as_nanos() as u64)
< now
{
if !mutate_state(|state| state.operations.remove(&tx_hash)).is_some() {
if mutate_state(|state| state.operations.remove(&tx_hash)).is_none() {
ic_cdk::trap(&format!("Could not remove tx hash {:?}", tx_hash))
}
} else {
Expand Down

0 comments on commit b37bb5b

Please sign in to comment.