Skip to content

Commit

Permalink
feature: supertape: rm unused quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 4, 2024
1 parent ddeda36 commit 79a0e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/supertape/bin/subscribe.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ const {createHarness} = harnessCreator;

const resolveFormatter = async (name) => await import(`@supertape/formatter-${name}`);

export async function subscribe({name, quiet, exit, worker, stdout}) {
export async function subscribe({name, exit, worker, stdout}) {
const {isStop} = keyPress();
const harness = createHarness(await resolveFormatter(name));

if (!quiet)
harness.pipe(stdout);
harness.pipe(stdout);

worker.on('exit', (code) => {
exit(code);
Expand Down
1 change: 0 additions & 1 deletion packages/supertape/bin/supertape.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const isStop = createIsStop(parentPort);
if (worker)
subscribe({
name: args.format,
quiet: args.quiet,
exit,
worker,
stdout,
Expand Down

0 comments on commit 79a0e2f

Please sign in to comment.