base: removed redundant code from is_ipv6
This commit is contained in:
parent
954fa45f2d
commit
149063d37f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user