mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 03:59:33 +02:00
Fixed codeclimate issues
This commit is contained in:
parent
5716a536ca
commit
311834c085
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ module WhiteIp::WhiteIpConcern
|
||||||
(ipv4 + ipv6).pluck(:id).flatten.uniq
|
(ipv4 + ipv6).pluck(:id).flatten.uniq
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop:disable Style/CaseEquality
|
||||||
def select_ipv4(ip)
|
def select_ipv4(ip)
|
||||||
return [] if check_ip4(ip).blank?
|
return [] if check_ip4(ip).blank?
|
||||||
|
|
||||||
|
@ -27,6 +28,7 @@ module WhiteIp::WhiteIpConcern
|
||||||
|
|
||||||
select { |white_ip| check_ip6(white_ip.ipv6) === check_ip6(ip) }
|
select { |white_ip| check_ip6(white_ip.ipv6) === check_ip6(ip) }
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Style/CaseEquality
|
||||||
|
|
||||||
def csv_header
|
def csv_header
|
||||||
%w[IPv4 IPv6 Interfaces Created Updated]
|
%w[IPv4 IPv6 Interfaces Created Updated]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue