Commit 10073fde authored by Steven Allen's avatar Steven Allen

make go vet a bit happier

parent 2ade7ce2
......@@ -92,7 +92,7 @@ func nextPowerOfTwo(v uint32) uint32 {
// fmt.Printf("-> %d", v)
i := uint32(0)
for i = 0; v > 1; i++ {
for ; v > 1; i++ {
v = v >> 1
}
......
......@@ -162,7 +162,7 @@ func TestPoolStressByteSlicePool(t *testing.T) {
if testing.Short() {
N /= 100
}
p := ByteSlicePool
p := &ByteSlicePool
done := make(chan bool)
errs := make(chan error)
for i := 0; i < P; i++ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment