Commit 1a8a2141 authored by CHRISTOPHER PIKE's avatar CHRISTOPHER PIKE

fix linting issues

parent 95ffc1b7
Pipeline #76523 passed with stages
in 33 seconds
...@@ -44,7 +44,6 @@ var startCmd = &cobra.Command{ ...@@ -44,7 +44,6 @@ var startCmd = &cobra.Command{
} }
const ( const (
helmVersionThreeTag = "Version"
helmVersionTwoTag = "SemVer" helmVersionTwoTag = "SemVer"
) )
...@@ -132,19 +131,12 @@ func helmVersion2() bool { ...@@ -132,19 +131,12 @@ func helmVersion2() bool {
} }
ss := strings.FieldsFunc(string(bytes), func(r rune) bool { ss := strings.FieldsFunc(string(bytes), func(r rune) bool {
if r == '{' { return r == '{'
return true
}
return false
}) })
keyValues := strings.Split(ss[1], ":") keyValues := strings.Split(ss[1], ":")
if keyValues[0] == helmVersionTwoTag { return keyValues[0] == helmVersionTwoTag
return true
}
return false
} }
func checkLocalSetup() bool { func checkLocalSetup() bool {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment