diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-28 20:44:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | a90b6efded49abcfa2516db794d7875b0396f558 (patch) | |
tree | ad9c3738830437064ada223f0978dab1d726b479 /pkg/updates | |
parent | fa8571e1f4c349e401542285ea238acdbd9d17ec (diff) |
start refactoring gui
Diffstat (limited to 'pkg/updates')
-rw-r--r-- | pkg/updates/updates.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go index 1c52d0419..95fcfa0eb 100644 --- a/pkg/updates/updates.go +++ b/pkg/updates/updates.go @@ -144,12 +144,10 @@ func (u *Updater) CheckForNewUpdate(onFinish func(string, error) error, userRequ return } - go utils.Safe(func() { - newVersion, err := u.checkForNewUpdate() - if err = onFinish(newVersion, err); err != nil { - u.Log.Error(err) - } - }) + newVersion, err := u.checkForNewUpdate() + if err = onFinish(newVersion, err); err != nil { + u.Log.Error(err) + } } func (u *Updater) skipUpdateCheck() bool { |