Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

Commit

Permalink
fix: unnecessary terminate logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Oct 22, 2019
1 parent 32bab56 commit 141341a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 61 deletions.
4 changes: 1 addition & 3 deletions src/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const pty = require('node-pty')
const chalk = require('chalk')
const consola = require('consola')
const nodeCleanup = require('node-cleanup')
const { terminate } = require('./util/terminate')

/** @typedef {import('node-pty').IPty} IPty */

Expand Down Expand Up @@ -143,8 +142,7 @@ exports.runScript = (script, folder, streaming) => {

exports.killAll = () => {
for (const child of children) {
terminate(child, process.cwd())
.then(() => child.kill())
child.kill()
}
children.clear()
}
Expand Down
4 changes: 0 additions & 4 deletions src/util/platform.js

This file was deleted.

42 changes: 0 additions & 42 deletions src/util/terminate.js

This file was deleted.

12 changes: 0 additions & 12 deletions src/util/terminate.sh

This file was deleted.

0 comments on commit 141341a

Please sign in to comment.