Avoid Result::flatten (would require MSRV bump)

This commit is contained in:
Michael Sproul
2026-02-23 17:28:46 +11:00
parent a2e0068b85
commit b3d2e85e55

View File

@@ -2494,8 +2494,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
.ok_or(Error::MissingBlock(block_root))
})
.collect::<Result<Vec<_>, Error>>()
})
.flatten()?;
})??;
// If Gloas is not enabled for any slots in the range, just return `blocks`.
if !self.spec.fork_name_at_slot::<E>(start_slot).gloas_enabled()