Skip to content

Commit cbaef54

Browse files
committed
rpc_util: Fix a. vet error
1 parent bae37e3 commit cbaef54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpc_util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,9 +994,9 @@ func (p *bytesPool) Get(size int) []byte {
994994
if cap(*bs) < size {
995995
*bs = make([]byte, size)
996996
return *bs
997-
} else {
998-
return (*bs)[:size]
999997
}
998+
999+
return (*bs)[:size]
10001000
}
10011001

10021002
func (p *bytesPool) Put(bs *[]byte) {

0 commit comments

Comments
 (0)