Explorar o código

fix(upgrader): close of closed channel

Jacky hai 1 día
pai
achega
be59730756
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      internal/upgrader/upgrade.go

+ 0 - 1
internal/upgrader/upgrade.go

@@ -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