Ensure curly-braces around control-flow
[folly.git] / folly / test / FixedStringTest.cpp
index 121e94fe4d3070b6e6da052a15e1cfc72e2a02eb..437bd67ce82b5205f463dfeee9d5f7827d087c0a 100644 (file)
@@ -641,8 +641,9 @@ constexpr std::size_t countSpacesReverse(folly::FixedString<50> s) {
   std::size_t count = 0u;
   auto i = s.rbegin();
   for( ; i != s.rend(); ++i, --i, i++, i--, i+=1, i-=1, i+=1 ) {
-    if (' ' == *i)
+    if (' ' == *i) {
       ++count;
+    }
   }
   return count;
 }