Skip to content

Commit

Permalink
fix mistake in err handling semver.NewVersion func
Browse files Browse the repository at this point in the history
  • Loading branch information
williamwalker102 authored and willswire committed Apr 25, 2023
1 parent af2db8d commit df9972c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/bigbang/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func manifestZarfCredentials(version string) corev1.Secret {
values := bbV1ZarfCredentialsValues

semverVersion, err := semver.NewVersion(version)
if err != nil && semverVersion.Major() == 2 {
if err == nil && semverVersion.Major() == 2 {
values = bbV2ZarfCredentialsValues
}

Expand Down

0 comments on commit df9972c

Please sign in to comment.