Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 5, 2024
1 parent b8787e2 commit 285a38f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stream/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const bufferResult = async ({ file, input, opts, opts: { from } }) => {
const { [from]: output } = await execCommand(input, opts)
// Stream output can be either string or buffer depending on `opts.encoding`
// However `file.contents` cannot be a string.
const buffer = Buffer.isBuffer(output) ? output : Buffer.from(output)
// eslint-disable-next-line no-param-reassign, fp/no-mutation
file.contents = buffer
file.contents = Buffer.from(output)
}

0 comments on commit 285a38f

Please sign in to comment.