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{
}
const (
helmVersionThreeTag = "Version"
helmVersionTwoTag = "SemVer"
)
......@@ -132,19 +131,12 @@ func helmVersion2() bool {
}
ss := strings.FieldsFunc(string(bytes), func(r rune) bool {
if r == '{' {
return true
}
return false
return r == '{'
})
keyValues := strings.Split(ss[1], ":")
if keyValues[0] == helmVersionTwoTag {
return true
}
return false
return keyValues[0] == helmVersionTwoTag
}
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