Skip to content

Commit cf4d75a

Browse files
silvanocerzacmaglie
andcommitted
Remove useless function
Co-authored-by: Cristian Maglie <[email protected]>
1 parent 7f6a897 commit cf4d75a

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

Diff for: cli/updater/updater.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,12 @@ func CheckForUpdate(currentVersion *semver.Version) *semver.Version {
3939
return nil
4040
}
4141

42-
return checkForUpdate(currentVersion)
42+
return ForceCheckForUpdate(currentVersion)
4343
}
4444

4545
// ForceCheckForUpdate always returns the latest available version if greater than
4646
// the one running, nil in all other cases
4747
func ForceCheckForUpdate(currentVersion *semver.Version) *semver.Version {
48-
return checkForUpdate(currentVersion)
49-
}
50-
51-
func checkForUpdate(currentVersion *semver.Version) *semver.Version {
5248
defer func() {
5349
// Always save the last time we checked for updates at the end
5450
inventory.Store.Set("updater.last_check_time", time.Now())

Diff for: i18n/data/en.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ msgstr "--git-url and --zip-path are disabled by default, for more information s
111111
msgid "--git-url and --zip-path flags allow installing untrusted files, use it at your own risk."
112112
msgstr "--git-url and --zip-path flags allow installing untrusted files, use it at your own risk."
113113

114-
#: cli/updater/updater.go:74
114+
#: cli/updater/updater.go:70
115115
msgid "A new release of Arduino CLI is available:"
116116
msgstr "A new release of Arduino CLI is available:"
117117

Diff for: i18n/rice-box.go

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)