Skip to content

Commit

Permalink
Do not show available updates with version if `updater.enable_notif…
Browse files Browse the repository at this point in the history
…ication` is set to `false` (arduino#2055)
  • Loading branch information
MatteoPologruto authored Feb 1, 2023
1 parent dca3df7 commit 3ac8320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func runVersionCommand(cmd *cobra.Command, args []string) {
if err != nil {
feedback.Fatal(fmt.Sprintf("Error parsing current version: %s", err), feedback.ErrGeneric)
}
latestVersion := updater.ForceCheckForUpdate(currentVersion)
latestVersion := updater.CheckForUpdate(currentVersion)

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

0 comments on commit 3ac8320

Please sign in to comment.