Introduce staticcheck for stricter builds (#7035)

This commit is contained in:
Harshavardhana authored and Nitish Tiwari committed 2019-02-13 18:29:36 +05:30
1 parent 4ba77a916d
commit df35d7db9d
71 files changed
+274 -777

No files matched your search

-7
View File
@@ -21,13 +21,6 @@ import (
"sync"
)
var b512pool = sync.Pool{
New: func() interface{} {
buf := make([]byte, 512)
return &buf
},
}
// A Pool is a type-safe wrapper around a sync.Pool.
type Pool struct {
p *sync.Pool