Skip to content

Commit

Permalink
src: remove duplicate loop
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
addaleax committed Aug 12, 2017
1 parent 7eb9f6f commit b87fae9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ void Environment::CleanupHandles() {

while (handle_cleanup_waiting_ != 0)
uv_run(event_loop(), UV_RUN_ONCE);

while (handle_cleanup_waiting_ != 0)
uv_run(event_loop(), UV_RUN_ONCE);
}

void Environment::StartProfilerIdleNotifier() {
Expand Down

0 comments on commit b87fae9

Please sign in to comment.