mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Fix go1.11 vet shadow errors (#6555)
This commit is contained in:
committed by
kannappanr
parent
c05ced08bb
commit
274b35154c
@@ -675,7 +675,7 @@ func (a adminAPIHandlers) GetConfigKeysHandler(w http.ResponseWriter, r *http.Re
|
||||
continue
|
||||
}
|
||||
val := gjson.Get(configStr, key)
|
||||
if j, err := sjson.Set(newConfigStr, normalizeJSONKey(key), val.Value()); err == nil {
|
||||
if j, ierr := sjson.Set(newConfigStr, normalizeJSONKey(key), val.Value()); ierr == nil {
|
||||
newConfigStr = j
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user