From 442f28a8f2c5235ef83c843531d92e397eacbe64 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 5 Oct 2023 19:09:55 +0200 Subject: [PATCH] chore: rm redundant if empty check (#4923) --- crates/payload/basic/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/payload/basic/src/lib.rs b/crates/payload/basic/src/lib.rs index 7c5e7065f..449d636b5 100644 --- a/crates/payload/basic/src/lib.rs +++ b/crates/payload/basic/src/lib.rs @@ -861,10 +861,8 @@ where let mut payload = BuiltPayload::new(attributes.id, sealed_block, total_fees); - if !blob_sidecars.is_empty() { - // extend the payload with the blob sidecars from the executed txs - payload.extend_sidecars(blob_sidecars); - } + // extend the payload with the blob sidecars from the executed txs + payload.extend_sidecars(blob_sidecars); Ok(BuildOutcome::Better { payload, cached_reads }) }