chore: remove redundant map (#6600)

This commit is contained in:
Matthias Seitz
2024-02-14 02:48:11 +01:00
committed by GitHub
parent fbfa2cedaf
commit eb8a805a94

View File

@ -99,17 +99,14 @@ pub trait PayloadBuilderAttributes: Send + Sync + std::fmt::Debug {
// cancun now, we need to set the excess blob gas to the default value
let blob_excess_gas_and_price = parent
.next_block_excess_blob_gas()
.map_or_else(
|| {
if spec_id == SpecId::CANCUN {
// default excess blob gas is zero
Some(0)
} else {
None
}
},
Some,
)
.or_else(|| {
if spec_id == SpecId::CANCUN {
// default excess blob gas is zero
Some(0)
} else {
None
}
})
.map(BlobExcessGasAndPrice::new);
let block_env = BlockEnv {