Skip to content

Commit 5fe844c

Browse files
Remove useless function
Co-authored-by: Cristian Maglie <c.maglie@arduino.cc>
1 parent 7f6a897 commit 5fe844c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cli/updater/updater.go

Lines changed: 1 addition & 5 deletions
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())

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy