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:
parent
f62ce4acc1
commit
b4416b5f0f
31 changed files with 126 additions and 119 deletions
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue