From a5be8034589fe024ce421b4a7d34739be2a1a8af Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Fri, 3 Jul 2015 20:37:34 +0200 Subject: [PATCH] Add break after key is found in for loop Signed-off-by: Antonio Murdaca --- runconfig/merge.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runconfig/merge.go b/runconfig/merge.go index 7d4cde06c8..df53ef964b 100644 --- a/runconfig/merge.go +++ b/runconfig/merge.go @@ -33,6 +33,7 @@ func Merge(userConf, imageConf *Config) error { userEnvKey := strings.Split(userEnv, "=")[0] if imageEnvKey == userEnvKey { found = true + break } } if !found {