mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add break after key is found in for loop
Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
parent
bca32648f4
commit
a5be803458
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…
Reference in a new issue