Cut unnecessary parens in IPAddress.h
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 9 Aug 2017 18:21:38 +0000 (11:21 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 9 Aug 2017 18:39:47 +0000 (11:39 -0700)
Summary: [Folly] Cut unnecessary parens in `IPAddress.h`.

Reviewed By: meyering

Differential Revision: D5589756

fbshipit-source-id: 6499e0db2aeb232356e2808fc59a35869b5dad0a

folly/IPAddress.h

index 4f4530270edae1c2333d560e0dbaa187e9b52228..1b9d205e9bd06aa7d1368449897f7d6b1e942434 100644 (file)
@@ -266,7 +266,7 @@ class IPAddress {
 
   // @return true if address is uninitialized
   bool empty() const {
-    return (family_ == AF_UNSPEC);
+    return family_ == AF_UNSPEC;
   }
 
   // @return true if address is initialized
@@ -276,12 +276,12 @@ class IPAddress {
 
   // @return true if this is an IPAddressV4 instance
   bool isV4() const {
-    return (family_ == AF_INET);
+    return family_ == AF_INET;
   }
 
   // @return true if this is an IPAddressV6 instance
   bool isV6() const {
-    return (family_ == AF_INET6);
+    return family_ == AF_INET6;
   }
 
   // @return true if this address is all zeros