Skip to content

Commit

Permalink
Don't try to delete temp files in FindPython, they're already being d…
Browse files Browse the repository at this point in the history
…eleted
  • Loading branch information
cjdelisle committed Oct 5, 2020
1 parent 6a29c55 commit 403f68c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions node_build/FindPython.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ var find = module.exports.find = function (tempFile, callback) {
py.stdout.on('data', function (dat) { console.log(dat.toString('utf8')); });
py.on('close', function(ret) {
if (ret === 0) {
Fs.exists(tempFile, waitFor(function (exists) {
if (!exists) { return; }

Fs.unlink(tempFile, waitFor(function (err) {
if (err) { throw err; }
}));
}));
callback(undefined, python);
waitFor.abort();
} else {
Expand Down

0 comments on commit 403f68c

Please sign in to comment.