More linter fixes

This commit is contained in:
Kovid Goyal
2023-09-24 09:16:27 +05:30
parent 4af1a38507
commit 38be3e98a1
5 changed files with 33 additions and 28 deletions

View File

@@ -183,7 +183,9 @@ func DownloadFileWithProgress(destpath, url string, kill_if_signaled bool) (err
return lp.OnWakeup()
}
lp.AddTimer(rd.spinner.interval, true, on_timer_tick)
if _, err = lp.AddTimer(rd.spinner.interval, true, on_timer_tick); err != nil {
return
}
err = lp.Run()
dl_data.mutex.Lock()
if dl_data.temp_file_path != "" && !dl_data.download_finished {