feat: lint error

This commit is contained in:
fearlseefe 2024-10-18 09:38:50 +08:00 committed by Chen Kai
parent 8baf51752b
commit 86c1b7d12e

View file

@ -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