Skip to content

Commit 5fe844c

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
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())

0 commit comments

Comments
 (0)