From 77f6cc8b072cb3b8dd35897a5ccf227686777d89 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 Two identical `while` loops after each other can be folded into a single one. --- src/env.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/env.cc b/src/env.cc index 0087f719dc00db..99c5764706f905 100644 --- a/src/env.cc +++ b/src/env.cc @@ -101,9 +101,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() {