base: removed redundant code from is_ipv6

This commit is contained in:
Matt Simerson 2014-11-05 14:31:44 -08:00
parent 954fa45f2d
commit 149063d37f

View File

@ -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;