Skip to content

Commit b87fae9

Browse files
committed
src: remove duplicate loop
Two identical `while` loops after each other can be folded into a single one. PR-URL: #14750 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Khaidi Chu <i@2333.moe>
1 parent 7eb9f6f commit b87fae9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/env.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ void Environment::CleanupHandles() {
105105

106106
while (handle_cleanup_waiting_ != 0)
107107
uv_run(event_loop(), UV_RUN_ONCE);
108-
109-
while (handle_cleanup_waiting_ != 0)
110-
uv_run(event_loop(), UV_RUN_ONCE);
111108
}
112109

113110
void Environment::StartProfilerIdleNotifier() {

0 commit comments

Comments
 (0)