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:
Andreas Opferkuch
2018-05-21 18:33:17 +02:00
committed by GitHub
parent 24c57b88c1
commit 50cef2e6ae

View File

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