mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2026-01-14 07:03:17 +08:00
Fixes #252 - Need to manually remove folder on nvm uninstall
File handle when checking the architecture of the node executable was left open.
This commit is contained in:
committed by
GitHub
parent
24c57b88c1
commit
50cef2e6ae
@@ -34,10 +34,12 @@ func SearchBytesInFile( path string, match string, limit int) bool {
|
||||
if bit[0] == toMatch[j] {
|
||||
j++;
|
||||
if (j >= len(toMatch)) {
|
||||
file.Close();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
file.Close();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user