We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f6a897 commit 5fe844cCopy full SHA for 5fe844c
cli/updater/updater.go
@@ -39,16 +39,12 @@ func CheckForUpdate(currentVersion *semver.Version) *semver.Version {
39
return nil
40
}
41
42
- return checkForUpdate(currentVersion)
+ return ForceCheckForUpdate(currentVersion)
43
44
45
// ForceCheckForUpdate always returns the latest available version if greater than
46
// the one running, nil in all other cases
47
func ForceCheckForUpdate(currentVersion *semver.Version) *semver.Version {
48
49
-}
50
-
51
-func checkForUpdate(currentVersion *semver.Version) *semver.Version {
52
defer func() {
53
// Always save the last time we checked for updates at the end
54
inventory.Store.Set("updater.last_check_time", time.Now())
0 commit comments