Skip to content

Commit eed341f

Browse files
committed
fix linter warnings
1 parent 3cfed43 commit eed341f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

encoding/codecv7.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ func (d *DACodecV7) constructBlob(batch *Batch) (*kzg4844.Blob, common.Hash, []b
105105

106106
if enableCompression {
107107
// compressedPayloadBytes represents the compressed blob payload
108-
compressedPayloadBytes, err := zstd.CompressScrollBatchBytes(payloadBytes)
108+
var compressedPayloadBytes []byte
109+
compressedPayloadBytes, err = zstd.CompressScrollBatchBytes(payloadBytes)
109110
if err != nil {
110111
return nil, common.Hash{}, nil, fmt.Errorf("failed to compress blob payload: %w", err)
111112
}

0 commit comments

Comments
 (0)