mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
build/vet: Fix all the shadowing reports with go1.6
Golang 1.6 is default version for the build now. Additionally set 'GODEBUG=cgocheck=0' for now, until we fix the erasure coding package. Readmore here https://tip.golang.org/doc/go1.6#cgo
This commit is contained in:
2
pkg/xl/cache/data/data.go
vendored
2
pkg/xl/cache/data/data.go
vendored
@@ -135,7 +135,7 @@ func (r *Cache) Append(key interface{}, value []byte) bool {
|
||||
}
|
||||
ele, hit := r.reverseItems[key]
|
||||
if !hit {
|
||||
ele := r.items.PushFront(&element{key, value})
|
||||
ele = r.items.PushFront(&element{key, value})
|
||||
r.currentSize += valueLen
|
||||
r.reverseItems[key] = ele
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user