1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Fix all JSHint complaints in Node.js code.

This commit is contained in:
Simo Kinnunen 2014-03-19 20:36:46 +09:00
parent f62ce4acc1
commit b4416b5f0f
31 changed files with 126 additions and 119 deletions

View file

@ -54,10 +54,10 @@ module.exports.fork = function() {
process.removeListener('SIGINT', sigintListener)
process.removeListener('SIGTERM', sigtermListener)
})
.catch(Promise.CancellationError, function(err) {
return new Promise(function(resolve, reject) {
.catch(Promise.CancellationError, function() {
return new Promise(function(resolve) {
proc.on('exit', function() {
resolver.resolve()
resolve()
})
proc.kill()
})