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 <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
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)