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,12 +499,12 @@ 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, "", "", "")
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
} }

Loading…
Cancel
Save