Commit 93b4749

Anton Medvedev <anton@medv.io>
2021-05-16 18:41:12
Fix code style
1 parent 13332ab
Changed files (1)
index.mjs
@@ -71,9 +71,9 @@ export function $(pieces, ...args) {
       combined += data
     })
     child.on('exit', code => {
-      const cb = (code === 0 ? resolve : reject)
       child.on('close', () => {
-        cb(new ProcessOutput({code, stdout, stderr, combined, __from}))
+        (code === 0 ? resolve : reject)
+        (new ProcessOutput({code, stdout, stderr, combined, __from}))
       })
     })
   })