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
1 changed files with 1 additions and 0 deletions

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 {