Skip to content

Commit

Permalink
removed extraneous time.Sleep() call
Browse files Browse the repository at this point in the history
  • Loading branch information
jchitel-ds committed Jan 19, 2018
1 parent 1b9d9aa commit a9ed9fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ func install(version string, cpuarch string) {
os.Rename(filepath.Join(tempNpmBin, "npx"), filepath.Join(env.root, "v"+version, "npx"))
os.Rename(filepath.Join(tempNpmBin, "npx.cmd"), filepath.Join(env.root, "v"+version, "npx.cmd"))
}

time.Sleep(10000*time.Millisecond)

err := os.Rename(filepath.Join(tempDir, "nvm-npm", "npm-"+npmv), filepath.Join(env.root, "v"+version, "node_modules", "npm"))
if err != nil {
// sometimes Windows can take some time to enable access to large amounts of files after unzip, use exponential backoff to wait until it is ready
Expand Down

0 comments on commit a9ed9fa

Please sign in to comment.