From: Yedidya Feldblum Date: Wed, 9 Aug 2017 18:21:38 +0000 (-0700) Subject: Cut unnecessary parens in IPAddress.h X-Git-Tag: v2017.08.14.00~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=13f2e05647affeba0a865df66d841664e239be6e;p=folly.git Cut unnecessary parens in IPAddress.h Summary: [Folly] Cut unnecessary parens in `IPAddress.h`. Reviewed By: meyering Differential Revision: D5589756 fbshipit-source-id: 6499e0db2aeb232356e2808fc59a35869b5dad0a --- diff --git a/folly/IPAddress.h b/folly/IPAddress.h index 4f453027..1b9d205e 100644 --- a/folly/IPAddress.h +++ b/folly/IPAddress.h @@ -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