Skip to content

Commit c935d4c

Browse files
authored
test_runner: replace spurious if with else
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 <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>
1 parent 43500fa commit c935d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/test_runner/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function stopTest(timeout, signal) {
8686

8787
if (timeout === kDefaultTimeout) {
8888
disposeFunction = abortListener[SymbolDispose];
89-
} if (timeout !== kDefaultTimeout) {
89+
} else {
9090
timer = setTimeout(() => deferred.resolve(), timeout);
9191
timer.unref();
9292

0 commit comments

Comments
 (0)