From 149063d37f0c0edad6e9d39baa59def885a2bd2a Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 5 Nov 2014 14:31:44 -0800 Subject: [PATCH] base: removed redundant code from is_ipv6 --- lib/Qpsmtpd/Base.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Qpsmtpd/Base.pm b/lib/Qpsmtpd/Base.pm index 1d2f4d4..cfe88ff 100644 --- a/lib/Qpsmtpd/Base.pm +++ b/lib/Qpsmtpd/Base.pm @@ -42,8 +42,7 @@ sub is_valid_ip { sub is_ipv6 { my ($self, $ip) = @_; return if !$ip; - return 1 if Net::IP::ip_is_ipv6($ip); - return; + return Net::IP::ip_is_ipv6($ip); }; 1;