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⚠️ if block ends with a return statement, so drop this else and outdent its block (golint)

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
pull/3474/head
Arash Deshmeh 7 years ago
parent 6a1dd806ed
commit 244b1b1528

@ -499,7 +499,8 @@ func readFile(filePath string) ([]byte, error) {
if err != nil { if err != nil {
return ioutil.ReadFile(filePath) return ioutil.ReadFile(filePath)
} else { }
getter, err := getterConstructor(filePath, "", "", "") getter, err := getterConstructor(filePath, "", "", "")
if err != nil { if err != nil {
return []byte{}, err return []byte{}, err
@ -507,4 +508,3 @@ func readFile(filePath string) ([]byte, error) {
data, err := getter.Get(filePath) data, err := getter.Get(filePath)
return data.Bytes(), err return data.Bytes(), err
} }
}

Loading…
Cancel
Save