diff --git a/cmd/versioncheck.go b/cmd/versioncheck.go index c5413f88..c54e1d01 100644 --- a/cmd/versioncheck.go +++ b/cmd/versioncheck.go @@ -72,7 +72,7 @@ func VersionCheckCmd() *cobra.Command { } crd := new(cosmosv1.CosmosFullNode) - if err := kClient.Get(ctx, namespacedName, crd); err != nil { + if err = kClient.Get(ctx, namespacedName, crd); err != nil { panic(fmt.Errorf("failed to get crd: %w", err)) }