Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Aug 16, 2022
1 parent 82d6b0f commit 57723f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/ledger/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ where
/// difference
pub fn delete(&mut self, key: &Key) -> Result<(u64, i64)> {
let mut deleted_bytes_len = 0;
if Self::has_key(&self, key)?.0 {
if self.has_key(key)?.0 {
self.block.tree.delete(key)?;
deleted_bytes_len =
self.db.delete_subspace_val(self.last_height, key)?;
Expand Down

0 comments on commit 57723f9

Please sign in to comment.