mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 08:08:15 -05:00
chore(storage): remove unnecessary check empty vec (#10671)
This commit is contained in:
@@ -18,11 +18,9 @@ where
|
||||
_: BlockNumber,
|
||||
receipts: Vec<Option<Receipt>>,
|
||||
) -> ProviderResult<()> {
|
||||
if !receipts.is_empty() {
|
||||
for (tx_idx, receipt) in receipts.into_iter().enumerate() {
|
||||
if let Some(receipt) = receipt {
|
||||
self.0.append(first_tx_index + tx_idx as u64, receipt)?;
|
||||
}
|
||||
for (tx_idx, receipt) in receipts.into_iter().enumerate() {
|
||||
if let Some(receipt) = receipt {
|
||||
self.0.append(first_tx_index + tx_idx as u64, receipt)?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user