1
0
Fork 0
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:
Antonio Murdaca 2015-07-03 20:37:34 +02:00
parent bca32648f4
commit a5be803458

View file

@ -33,6 +33,7 @@ func Merge(userConf, imageConf *Config) error {
userEnvKey := strings.Split(userEnv, "=")[0]
if imageEnvKey == userEnvKey {
found = true
break
}
}
if !found {