Skip to content

Commit 3bfc101

Browse files
committed
fix: add braces to single-line if statements in process.ts
1 parent 084def1 commit 3bfc101

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli/utils/process.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const runCommandWithOutput = (
8080
})
8181

8282
child.on('error', (err: NodeJS.ErrnoException) => {
83-
if (timer) clearTimeout(timer)
83+
if (timer) { clearTimeout(timer) }
8484
if (err.code === 'ENOENT') {
8585
settle({ ok: false, reason: 'not-found', stdout, stderr })
8686
} else if (err.code === 'EACCES') {
@@ -91,7 +91,7 @@ export const runCommandWithOutput = (
9191
})
9292

9393
child.on('close', (code, signal) => {
94-
if (timer) clearTimeout(timer)
94+
if (timer) { clearTimeout(timer) }
9595

9696
if (timedOut) {
9797
settle({ ok: false, reason: 'timeout', stdout, stderr })

0 commit comments

Comments
 (0)