Skip to content
Snippets Groups Projects
Commit 1a8a2141 authored by CHRISTOPHER PIKE's avatar CHRISTOPHER PIKE
Browse files

fix linting issues

parent 95ffc1b7
No related branches found
No related tags found
No related merge requests found
Pipeline #76523 passed with warnings
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment