Consistency in namespace-closing comments
[folly.git] / folly / IPAddress.cpp
index 0bd391024cd28ac9993b83b524b951b2b70717b3..75c2ff3d50e6cd7563abdca611ff583da4a53114 100644 (file)
@@ -89,8 +89,8 @@ CIDRNetwork IPAddress::createNetwork(StringPiece ipSlashCidr,
         "'"));
   }
   IPAddress subnet(vec.at(0));
-  uint8_t cidr =
-      (defaultCidr > -1) ? uint8_t(defaultCidr) : (subnet.isV4() ? 32 : 128);
+  auto cidr =
+      uint8_t((defaultCidr > -1) ? defaultCidr : (subnet.isV4() ? 32 : 128));
 
   if (elemCount == 2) {
     try {
@@ -434,5 +434,4 @@ IPAddress::longestCommonPrefix(const CIDRNetwork& one, const CIDRNetwork& two) {
       "Can't convert address with family ", fam, " to AF_INET6 address"));
 }
 
-
-}  // folly
+} // namespace folly