Skip to content

Commit 486779e

Browse files
authored
fix: Remove invalid process.stderr.setEncoding call
Fixes: #571
1 parent 28308c4 commit 486779e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/box-command.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,6 @@ class BoxCommand extends Command {
15171517
// Write the error message but let the process exit gracefully with error code so stderr gets written out
15181518
// @NOTE: Exiting the process in the callback enables tests to mock out stderr and run to completion!
15191519
/* eslint-disable no-process-exit,unicorn/no-process-exit */
1520-
process.stderr.setEncoding('utf8');
15211520
process.stderr.write(errorMsg, () => {
15221521
process.exitCode = 2;
15231522
});

0 commit comments

Comments
 (0)