Skip to content

Commit

Permalink
Fix c8
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 27, 2024
1 parent a18d2b2 commit 2eb238c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ export const streamCommand = (input, opts) => {

try {
return execaCommand(input, opts).readable({ from: opts.from })
/* c8 ignore start */
} catch (error) {
// At the moment, `execa` never throws synchronously.
// This is just a safety catch in case it has a bug.
throwError(error)
}
/* c8 ignore stop */
}

const execaCommand = (input, opts) => {
Expand Down

0 comments on commit 2eb238c

Please sign in to comment.