Skip to content

Commit

Permalink
comment addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
SupremoUGH committed Jun 9, 2023
1 parent d158299 commit b8d3750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manta-crypto/src/merkle_tree/leaf_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ where
fn remove(&mut self, index: usize) -> bool {
match self.last_index {
Some(current_index) if index == current_index => false,
_ => self.map.remove(&index).is_none(),
_ => self.map.remove(&index).is_some(),
}
}
}
Expand Down Expand Up @@ -581,7 +581,7 @@ where
fn remove(&mut self, index: usize) -> bool {
match self.last_index {
Some(current_index) if index == current_index => false,
_ => self.map.remove(&index).is_none(),
_ => self.map.remove(&index).is_some(),
}
}
}

0 comments on commit b8d3750

Please sign in to comment.