Skip to content

Commit 1aeec53

Browse files
committed
Use os.Getenv instead
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
1 parent db28410 commit 1aeec53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/config/configfile/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func (configFile *ConfigFile) GetCredentialsStore(registryHostname string) crede
272272
// if DOCKER_AUTH_CONFIG is set, we need to use the env store instead
273273
// it falls back to native or file store if a value is not found
274274
// in the environment
275-
if v, ok := os.LookupEnv("DOCKER_AUTH_CONFIG"); ok && v != "" {
275+
if v := os.Getenv("DOCKER_AUTH_CONFIG"); v != "" {
276276
envConfig := &ConfigFile{
277277
AuthConfigs: make(map[string]types.AuthConfig),
278278
}

0 commit comments

Comments
 (0)