From b87fae927d08e3b7eeaefb50a6c09eb9d3d8cf21 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 10 Aug 2017 21:07:21 +0200 Subject: [PATCH] src: remove duplicate loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two identical `while` loops after each other can be folded into a single one. PR-URL: https://github.com/nodejs/node/pull/14750 Reviewed-By: Ben Noordhuis Reviewed-By: Daniel Bevenius Reviewed-By: James M Snell Reviewed-By: Evan Lucas Reviewed-By: Luigi Pinca Reviewed-By: Timothy Gu Reviewed-By: Michaël Zasso Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Khaidi Chu --- src/env.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/env.cc b/src/env.cc index 5bd75abab34512..076198cd626a81 100644 --- a/src/env.cc +++ b/src/env.cc @@ -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() {