Merge pull request #14383 from runcom/runconfig-merge-cleanup
add break after key is found in for loop
This commit is contained in:
commit
90bc5513a9
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ func Merge(userConf, imageConf *Config) error {
|
|||
userEnvKey := strings.Split(userEnv, "=")[0]
|
||||
if imageEnvKey == userEnvKey {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
|
|
Loading…
Add table
Reference in a new issue