mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Merge pull request #11329 from atom/tj-fix-nullref-callback
Fix potential null reference callback invokation in script/clean
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user