mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
Fix go1.11 vet shadow errors (#6555)
This commit is contained in:
parent
c05ced08bb
commit
274b35154c
@ -675,7 +675,7 @@ func (a adminAPIHandlers) GetConfigKeysHandler(w http.ResponseWriter, r *http.Re
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
val := gjson.Get(configStr, key)
|
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
|
newConfigStr = j
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ func handleCommonEnvVars() {
|
|||||||
|
|
||||||
globalDomainName, globalIsEnvDomainName = os.LookupEnv("MINIO_DOMAIN")
|
globalDomainName, globalIsEnvDomainName = os.LookupEnv("MINIO_DOMAIN")
|
||||||
if globalDomainName != "" {
|
if globalDomainName != "" {
|
||||||
if _, ok := dns2.IsDomainName(globalDomainName); !ok {
|
if _, ok = dns2.IsDomainName(globalDomainName); !ok {
|
||||||
logger.Fatal(uiErrInvalidDomainValue(nil).Msg("Unknown value `%s`", globalDomainName), "Invalid MINIO_DOMAIN environment variable")
|
logger.Fatal(uiErrInvalidDomainValue(nil).Msg("Unknown value `%s`", globalDomainName), "Invalid MINIO_DOMAIN environment variable")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user