From f5aa154905ed67364252753b8d0e6a4174d1bca4 Mon Sep 17 00:00:00 2001 From: Somnath Banerjee Date: Tue, 6 Aug 2024 14:12:47 +0400 Subject: [PATCH] Remove redundant nil check --- turbo/engineapi/engine_server.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/turbo/engineapi/engine_server.go b/turbo/engineapi/engine_server.go index aa38f501300..62a96549b61 100644 --- a/turbo/engineapi/engine_server.go +++ b/turbo/engineapi/engine_server.go @@ -212,10 +212,8 @@ func (s *EngineServer) newPayload(ctx context.Context, req *engine_types.Executi requests = append(requests, req.DepositRequests.Requests()...) requests = append(requests, req.WithdrawalRequests.Requests()...) requests = append(requests, req.ConsolidationRequests.Requests()...) - if requests != nil { - rh := types.DeriveSha(requests) - header.RequestsRoot = &rh - } + rh := types.DeriveSha(requests) + header.RequestsRoot = &rh } if version <= clparams.CapellaVersion {