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: nodejs#48915
  • Loading branch information
cjihrig committed Sep 28, 2023
1 parent 0fe673c commit 1bb2d08
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 1bb2d08

Please sign in to comment.