Skip to content

Commit b4f8360

Browse files
committed
Fix linter
1 parent a4d5442 commit b4f8360

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

network/msgCompressor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ func (c *wsPeerMsgDataConverter) convert(tag protocol.Tag, data []byte) ([]byte,
109109
// in this case it sends non-compressed payload - the receiver decompress only if it is compressed.
110110
if len(data) > 4 && bytes.Equal(data[:4], zstdCompressionMagic[:]) {
111111
return c.zstdDecompress(data)
112-
} else {
113-
c.log.Warnf("peer %s supported zstd but sent non-compressed data", c.origin)
114112
}
113+
c.log.Warnf("peer %s supported zstd but sent non-compressed data", c.origin)
115114
}
116115
return data, nil
117116
}

0 commit comments

Comments
 (0)