logging: add an assert for the FLAG_INHERIT bit
[folly.git] / folly / experimental / EventCount.h
index f2f806cb0bac7de5228c757cfb33b2fa186d3dc2..1496b8b17139d6cddc8fdbf1237a306fe427e193 100644 (file)
@@ -175,7 +175,9 @@ inline void EventCount::wait(Key key) noexcept {
 
 template <class Condition>
 void EventCount::await(Condition condition) {
-  if (condition()) return;  // fast path
+  if (condition()) {
+    return; // fast path
+  }
 
   // condition() is the only thing that may throw, everything else is
   // noexcept, so we can hoist the try/catch block outside of the loop