Ensure curly-braces around control-flow
[folly.git] / folly / AtomicHashMap-inl.h
index 2dc552559b36bce0e660d07eaf05c92b8ce9eaa3..b4032ab2b2444f890b5e242e52907adf1bcc6cf2 100644 (file)
@@ -439,7 +439,9 @@ AtomicHashMap<KeyT, ValueT, HashFcn, EqualFcn,
               Allocator, ProbeFcn, KeyConvertFcn>::
     encodeIndex(uint32_t subMap, uint32_t offset) {
   DCHECK_EQ(offset & kSecondaryMapBit_, 0);  // offset can't be too big
-  if (subMap == 0) return offset;
+  if (subMap == 0) {
+    return offset;
+  }
   // Make sure subMap isn't too big
   DCHECK_EQ(subMap >> kNumSubMapBits_, 0);
   // Make sure subMap bits of offset are clear