Skip to content

Commit

Permalink
Simplify end function
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Jan 23, 2024
1 parent 7953d5e commit 64a3710
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cli/_stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ module.exports = function handleStdin (params) {

async function end () {
try {
if (watcher) await watcher.close()
await sandbox.end()
await Promise.all([ watcher?.close(), sandbox.end() ])
}
catch (err) {
update.err(err)
Expand Down

0 comments on commit 64a3710

Please sign in to comment.