Skip to content

Commit

Permalink
Move version printing inside if printVersion
Browse files Browse the repository at this point in the history
Signed-off-by: M Essam Hamed <[email protected]>
  • Loading branch information
mohamed-essam committed Jan 25, 2024
1 parent 8ea1c2d commit 08b7c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func mainE(w io.Writer, fs *flag.FlagSet, gofs *goflag.FlagSet, args []string) e

ssv1alpha1.AcceptDeprecatedV1Data = flags.AcceptV1Data

slog.Info("controller version", "version", VERSION)
if printVersion {
fmt.Fprintf(w, "controller version: %s\n", VERSION)
return nil
}

Expand Down

0 comments on commit 08b7c6d

Please sign in to comment.