From 86c1b7d12e93427799c61790c5cf3a479db29fb8 Mon Sep 17 00:00:00 2001 From: fearlseefe <505380967@qq.com> Date: Fri, 18 Oct 2024 09:38:50 +0800 Subject: [PATCH] feat: lint error --- portalnetwork/history/history_network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portalnetwork/history/history_network.go b/portalnetwork/history/history_network.go index dc9360e2b2f7..e102902299e8 100644 --- a/portalnetwork/history/history_network.go +++ b/portalnetwork/history/history_network.go @@ -303,7 +303,7 @@ func validateBlockBody(body *types.Body, header *types.Header) error { // EncodeBlockBody encode types.Body to ssz bytes func EncodeBlockBody(body *types.Body) ([]byte, error) { - if body.Withdrawals != nil && len(body.Withdrawals) > 0 { + if len(body.Withdrawals) > 0 { blockShanghai, err := toPortalBlockBodyShanghai(body) if err != nil { return nil, err