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
PR-URL: nodejs#49943
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
  • Loading branch information
cjihrig authored and alexfernandez committed Nov 1, 2023
1 parent 28d2e2b commit fade0f4
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 fade0f4

Please sign in to comment.