Skip to content

Commit

Permalink
test_runner: replace spurious if with else
Browse files Browse the repository at this point in the history
There is an `if` statement that likely should have been
an `else` in the original PR.

Refs: #48915
PR-URL: #49943
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Raz Luvaton <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: LiviaMedeiros <[email protected]>
  • Loading branch information
cjihrig authored and targos committed Nov 27, 2023
1 parent b283ae4 commit 1d9c371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function stopTest(timeout, signal) {

if (timeout === kDefaultTimeout) {
disposeFunction = abortListener[SymbolDispose];
} if (timeout !== kDefaultTimeout) {
} else {
timer = setTimeout(() => deferred.resolve(), timeout);
timer.unref();

Expand Down

0 comments on commit 1d9c371

Please sign in to comment.