Skip to content

Commit 1719d54

Browse files
author
xiaobiao
committed
fix golangci warnings
1 parent dee5b73 commit 1719d54

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packet/conn.go

-2
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,11 @@ func (c *Conn) ReadPacketReuseMem(dst []byte) ([]byte, error) {
107107
if readSize > utils.TooBigBlockSize {
108108
buf = nil
109109
}
110-
111110
} else {
112111
if readSize > utils.TooBigBlockSize {
113112
// if read block is big, use read block as result and do not cache buf any more
114113
result = readBytes
115114
buf = nil
116-
117115
} else {
118116
result = append(dst, readBytes...)
119117
}

0 commit comments

Comments
 (0)