Skip to content

Commit 3e5bd18

Browse files
wtrockirkpattnaik780
authored andcommitted
fix: remove fmt
1 parent 19521fb commit 3e5bd18

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cmd/rhoas/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ func executeCommandWithTelemetry(rootCmd *cobra.Command, cmdFactory *factory.Fac
120120
if cmd.Runnable() && !cmd.Hidden {
121121
commandPath = cmd.CommandPath()
122122
}
123-
updated, err := cmdutil.DoSelfUpdateOnceADay(cmdFactory.Logger, cmdFactory.Config)
124-
fmt.Print(updated)
125-
if err != nil {
123+
_, err1 := cmdutil.DoSelfUpdateOnceADay(cmdFactory.Logger, cmdFactory.Config)
124+
if err1 != nil {
126125
cmdFactory.Logger.Errorf(cmdFactory.Localizer.MustLocalize("main.update.error", localize.NewEntry("Error", err)))
127126
}
128127
}

0 commit comments

Comments
 (0)