1
0
mirror of https://github.com/openshift/image-registry.git synced 2026-02-05 09:45:55 +01:00

Make linter happy

This commit is contained in:
Oleg Bulatov
2017-11-24 14:53:04 +01:00
parent 2eead35d09
commit 7888015c19
18 changed files with 79 additions and 83 deletions

View File

@@ -42,7 +42,9 @@ func main() {
os.Exit(1)
}
// Prevent a warning about unrecognized environment variable
os.Unsetenv("REGISTRY_CONFIGURATION_PATH")
if err := os.Unsetenv("REGISTRY_CONFIGURATION_PATH"); err != nil {
log.Fatalf("Unable to unset REGISTRY_CONFIGURATION_PATH: %v", err)
}
configFile, err := os.Open(configurationPath)
if err != nil {