Ensure curly-braces around control-flow
[folly.git] / folly / gen / test / BaseTest.cpp
index 5d9075bda463e95632cfccb05b186812422c97cc..0158b93674eb702820dbfae24a3d51480ee1ab9b 100644 (file)
@@ -877,10 +877,12 @@ TEST(Gen, MapYielders) {
            | map([](int n) {
                return GENERATOR(int) {
                  int i;
-                 for (i = 1; i < n; ++i)
+                 for (i = 1; i < n; ++i) {
                    yield(i);
-                 for (; i >= 1; --i)
+                 }
+                 for (; i >= 1; --i) {
                    yield(i);
+                 }
                };
              })
            | concat;