Skip to content

Commit 962608a

Browse files
committed
refactor
1 parent 39db0ba commit 962608a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

compress.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ func (c *compIO) writeCompressedPacket(data []byte, uncompressedLen int) (int, e
206206
data[3] = mc.compressSequence
207207
putUint24(data[4:7], uncompressedLen)
208208

209-
n, err := mc.writeWithTimeout(data)
210-
if err != nil {
211-
return n, err
212-
}
213-
214209
mc.compressSequence++
215-
return n, nil
210+
return mc.writeWithTimeout(data)
216211
}

0 commit comments

Comments
 (0)