From 458ba8ce37d5068ec03384257d4cbeed79e4906d Mon Sep 17 00:00:00 2001 From: Gijs Kunze Date: Tue, 3 Apr 2018 11:12:12 +0200 Subject: [PATCH] Removes unnecessary if block --- cmd/helm/install.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/helm/install.go b/cmd/helm/install.go index 55e34f405..d52dbc667 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/install.go @@ -313,11 +313,6 @@ func mergeValues(dest map[string]interface{}, src map[string]interface{}) map[st dest[k] = v continue } - // If the key doesn't exist already, then just set the key to that value - if _, exists := dest[k]; !exists { - dest[k] = nextMap - continue - } // Edge case: If the key exists in the destination, but isn't a map destMap, isMap := dest[k].(map[string]interface{}) // If the source map has a map for this key, prefer it