mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2026-01-14 07:03:17 +08:00
refactored Download abort PR (upon failed download)
This commit is contained in:
@@ -67,10 +67,10 @@ func GetFullNpmUrl(path string) string {
|
||||
}
|
||||
|
||||
func Download(url string, target string, version string) bool {
|
||||
|
||||
output, err := os.Create(target)
|
||||
if err != nil {
|
||||
fmt.Println("Error while creating", target, "-", err)
|
||||
return false
|
||||
}
|
||||
defer output.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user