From 244b1b152865c3f7d86f38a16d4dc9ce2a574bd2 Mon Sep 17 00:00:00 2001 From: Arash Deshmeh Date: Thu, 8 Feb 2018 16:18:42 -0500 Subject: [PATCH] fix(helm): fix the build-time golint warning on 'cmd/helm/install.go' When building helm, golint no longer generates the following warning: cmd/helm/install.go:502:9:warning: if block ends with a return statement, so drop this else and outdent its block (golint) Signed-off-by: Arash Deshmeh --- cmd/helm/install.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/helm/install.go b/cmd/helm/install.go index 8f849a15b..55ddd8141 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/install.go @@ -499,12 +499,12 @@ func readFile(filePath string) ([]byte, error) { if err != nil { return ioutil.ReadFile(filePath) - } else { - getter, err := getterConstructor(filePath, "", "", "") - if err != nil { - return []byte{}, err - } - data, err := getter.Get(filePath) - return data.Bytes(), err } + + getter, err := getterConstructor(filePath, "", "", "") + if err != nil { + return []byte{}, err + } + data, err := getter.Get(filePath) + return data.Bytes(), err }