New 🌊 wave for @helm

Commit ff6010cb

ff6010cb0399Merged

Svyatoslav Dumchenko <[email protected]> · 5 years ago · 9 files · ~9 modified

Description

gocritic: some simplifications

Details

Commit
ff6010cb0399
Parent
d5e7d3ad83f1

pkg/helper/helm.gomodifiedView file

@@ -12,7 +12,7 @@
1212 func ActionCfg(ns string, settings *helm.EnvSettings) (*action.Configuration, error) {
1313 cfg := new(action.Configuration)
1414 helmDriver := os.Getenv("HELM_DRIVER")
15- if len(ns) == 0 {
15+ if ns == "" {
1616 ns = settings.Namespace()
1717 }
1818