From 13f2e05647affeba0a865df66d841664e239be6e Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Wed, 9 Aug 2017 11:21:38 -0700 Subject: [PATCH] Cut unnecessary parens in IPAddress.h Summary: [Folly] Cut unnecessary parens in `IPAddress.h`. Reviewed By: meyering Differential Revision: D5589756 fbshipit-source-id: 6499e0db2aeb232356e2808fc59a35869b5dad0a --- folly/IPAddress.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.34.1