Ensure curly-braces around control-flow
[folly.git] / folly / futures / test / ViaTest.cpp
index 1a530d37706aa2f651751cc9ed1c9833131a519e..79e6c9bf9847d5a3a9a6e82c7697cb6e20d75955 100644 (file)
@@ -50,8 +50,9 @@ struct ViaFixture : public testing::Test {
   {
     t = std::thread([=] {
         ManualWaiter eastWaiter(eastExecutor);
-        while (!done)
+        while (!done) {
           eastWaiter.drive();
+        }
       });
   }
 
@@ -466,7 +467,9 @@ TEST(Via, viaRaces) {
     p.setValue();
   });
 
-  while (!done) x.run();
+  while (!done) {
+    x.run();
+  }
   t1.join();
   t2.join();
 }