simplify code

pull/1008/head
Darien Raymond 2018-03-28 22:23:49 +02:00
parent 47c92fafc8
commit 141b31eb19
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ func freeBytes(b []byte) {
size := uint32(cap(b))
b = b[0:cap(b)]
for i := numPools - 1; i >= 0; i-- {
ps := poolSize[i]
if size >= ps {
if size >= poolSize[i] {
pool[i].Put(b)
return
}