Other: Linter fixes after bumping linter version

This commit is contained in:
James Houlahan
2022-10-11 18:04:39 +02:00
parent 4a5c411665
commit 14a578f319
23 changed files with 273 additions and 206 deletions

View File

@ -13,6 +13,10 @@ func (bridge *Bridge) CheckForUpdates() {
}
func (bridge *Bridge) watchForUpdates() error {
if _, err := bridge.updater.GetVersionInfo(bridge.api, bridge.vault.GetUpdateChannel()); err != nil {
return err
}
ticker := time.NewTicker(constants.UpdateCheckInterval)
go func() {
@ -22,7 +26,10 @@ func (bridge *Bridge) watchForUpdates() error {
return
case <-bridge.updateCheckCh:
// ...
case <-ticker.C:
// ...
}
version, err := bridge.updater.GetVersionInfo(bridge.api, bridge.vault.GetUpdateChannel())