diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-14 21:11:24 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-14 21:11:24 -0400 |
commit | 71eea4f71b40053e88eb321ad94179af664a6f62 (patch) | |
tree | 40b1f75397cc398718834ba9c17b41f6872e45d2 /src | |
parent | 22e5efbf156a192f52c5985d60b937edb19d941e (diff) | |
download | tanzanite-71eea4f71b40053e88eb321ad94179af664a6f62.tar.gz tanzanite-71eea4f71b40053e88eb321ad94179af664a6f62.tar.bz2 tanzanite-71eea4f71b40053e88eb321ad94179af664a6f62.zip |
fix: spread arguments
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/utils/BushLogger.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/utils/BushLogger.ts b/src/lib/utils/BushLogger.ts index caffecc..24d0300 100644 --- a/src/lib/utils/BushLogger.ts +++ b/src/lib/utils/BushLogger.ts @@ -42,15 +42,15 @@ export class BushLogger { stream.write('\n'); stream.clearLine(0); // eslint-disable-next-line prefer-rest-params - if (type === 'log') console.log([...arguments].slice(1)); + if (type === 'log') console.log(...[...arguments].slice(1)); else stream.write(`${content}\n`); stream.moveCursor(0, typeof content === 'string' ? content.split('\n').length : 1); if (!replGone) REPL.displayPrompt(true); } else { // eslint-disable-next-line prefer-rest-params - if (type === 'log' || type === 'stdout') console.log([...arguments].slice(1)); + if (type === 'log' || type === 'stdout') console.log(...[...arguments].slice(1)); // eslint-disable-next-line prefer-rest-params - else console.error([...arguments].slice(1)); + else console.error(...[...arguments].slice(1)); } } |