fix a multiline comment warning
[folly.git] / folly / test / FBStringTestBenchmarks.cpp.h
index d1c68784d7ca11894aa8d9793db9b7219fcdc1bd..97c9343f26397e355b1672f3baaa840115891b35 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2011-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -62,7 +62,9 @@ BENCHMARK_PARAM(BENCHFUN(ctorFromArray), 32768);
 void BENCHFUN(ctorFromTwoPointers)(size_t iters, size_t arg) {
   /* library-local */ static STRING s;
   BENCHMARK_SUSPEND {
-    if (s.size() < arg) s.resize(arg);
+    if (s.size() < arg) {
+      s.resize(arg);
+    }
   }
   FOR_EACH_RANGE (i, 0, iters) {
     STRING s1(s.begin(), s.end());