mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: use is_none_or instead of map_or (#13035)
This commit is contained in:
@ -112,7 +112,7 @@ impl<T> BlockBatchRecord<T> {
|
||||
|
||||
/// Returns the [`BundleRetention`] for the given block based on the configured prune modes.
|
||||
pub fn bundle_retention(&self, block_number: BlockNumber) -> BundleRetention {
|
||||
if self.tip.map_or(true, |tip| {
|
||||
if self.tip.is_none_or(|tip| {
|
||||
!self
|
||||
.prune_modes
|
||||
.account_history
|
||||
|
||||
Reference in New Issue
Block a user