fix(upgrader): close of closed channel

This commit is contained in:
Jacky 2025-05-04 04:28:18 +00:00
parent 6ae85e00a1
commit be59730756
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

View file

@ -98,7 +98,6 @@ func downloadRelease(url string, dir string, progressChan chan float64) (tarName
multiWriter := io.MultiWriter(progressWriter)
_, err = io.Copy(multiWriter, resp.Body)
close(progressChan)
tarName = file.Name()
return