Merge pull request #11329 from atom/tj-fix-nullref-callback

Fix potential null reference callback invokation in script/clean
This commit is contained in:
Damien Guard 2016-03-31 08:27:18 -04:00
commit 0f615ff4e6

View File

@ -17,7 +17,7 @@ exports.safeExec = function(command, options, callback) {
var child = childProcess.exec(command, options, function(error, stdout, stderr) {
if (error)
process.exit(error.code || 1);
else
else if (callback)
callback(null);
});
child.stderr.pipe(process.stderr);