Fix go1.11 vet shadow errors (#6555)

This commit is contained in:
Pontus Leitzler
2018-10-03 00:21:34 +02:00
committed by kannappanr
parent c05ced08bb
commit 274b35154c
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}
}