From 385a1f1643243c0e873d0423d4a2a337faa46c00 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Mon, 1 Oct 2018 14:11:48 -0700 Subject: [PATCH] polish assert --- src/core/lib/gpr/sync_posix.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/lib/gpr/sync_posix.cc b/src/core/lib/gpr/sync_posix.cc index 6d0a4279390..1a1de597d05 100644 --- a/src/core/lib/gpr/sync_posix.cc +++ b/src/core/lib/gpr/sync_posix.cc @@ -136,11 +136,9 @@ int gpr_cv_wait(gpr_cv* cv, gpr_mu* mu, gpr_timespec abs_deadline) { g_fork_count, g_timer_wait_err, g_timer_cv_value, g_timer_mu_value, g_abstime_sec_value, g_abstime_nsec_value); } - GPR_ASSERT(err == 0 || err == ETIMEDOUT || err == EAGAIN); } -#else - GPR_ASSERT(err == 0 || err == ETIMEDOUT || err == EAGAIN); #endif + GPR_ASSERT(err == 0 || err == ETIMEDOUT || err == EAGAIN); return err == ETIMEDOUT; }