Skip to content

Commit 3ac8320

Browse files
Do not show available updates with version if updater.enable_notification is set to false (#2055)
1 parent dca3df7 commit 3ac8320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/cli/version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func runVersionCommand(cmd *cobra.Command, args []string) {
5959
if err != nil {
6060
feedback.Fatal(fmt.Sprintf("Error parsing current version: %s", err), feedback.ErrGeneric)
6161
}
62-
latestVersion := updater.ForceCheckForUpdate(currentVersion)
62+
latestVersion := updater.CheckForUpdate(currentVersion)
6363

6464
if feedback.GetFormat() != feedback.Text && latestVersion != nil {
6565
// Set this only we managed to get the latest version

0 commit comments

Comments
 (0)