We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39ae15 commit a9ee123Copy full SHA for a9ee123
internal/plugins/helm/v1/api.go
@@ -235,5 +235,8 @@ func (p *createAPISubcommand) Scaffold(fs machinery.Filesystem) error {
235
236
// hasDifferentCRDVersion returns true if any other CRD version is tracked in the project configuration.
237
func hasDifferentAPIVersion(versions []string, version string) bool {
238
- return len(versions) != 0 && (len(versions) != 1 || versions[0] != version)
+ if len(versions) == 0 {
239
+ return false
240
+ }
241
+ return len(versions) > 1 || versions[0] != version
242
}
0 commit comments