mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 06:15:16 +02:00
Fix all JSHint complaints in Node.js code.
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user