Skip to content

Commit

Permalink
adjust code form
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Jan 22, 2025
1 parent 3d7cb4a commit e1d90ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/chia-datalayer/src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,10 @@ impl MerkleBlob {
}

pub fn get_key_index(&self, key: KvId) -> Result<TreeIndex, Error> {
Ok(*self.key_to_index.get(&key).ok_or(Error::UnknownKey(key))?)
self.key_to_index
.get(&key)
.copied()
.ok_or(Error::UnknownKey(key))
}
}

Expand Down

0 comments on commit e1d90ba

Please sign in to comment.