Skip to content

Commit 666cb91

Browse files
committed
test_runner: avoid unnecessary variable declaration
1 parent 9e21914 commit 666cb91

File tree

1 file changed

+1
-2
lines changed
  • lib/internal/test_runner/reporter

1 file changed

+1
-2
lines changed

lib/internal/test_runner/reporter/spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ class SpecReporter extends Transform {
5252
ArrayPrototypePush(results, formattedErr);
5353
}
5454

55-
const output = ArrayPrototypeJoin(results, '\n');
5655
this.#failedTests = []; // Clean up the failed tests
57-
return output;
56+
return ArrayPrototypeJoin(results, '\n'); ;
5857
}
5958
#handleTestReportEvent(type, data) {
6059
const subtest = ArrayPrototypeShift(this.#stack); // This is the matching `test:start` event

0 commit comments

Comments
 (0)