From 339b48d0e00679cd1b00c25047a3c26077ef1757 Mon Sep 17 00:00:00 2001 From: Alexander Azarov Date: Fri, 16 Aug 2024 08:30:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20IP=20fetching?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rubocop/cop/custom/ip_ranges.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubocop/cop/custom/ip_ranges.rb b/lib/rubocop/cop/custom/ip_ranges.rb index 9748ed7..014118d 100644 --- a/lib/rubocop/cop/custom/ip_ranges.rb +++ b/lib/rubocop/cop/custom/ip_ranges.rb @@ -75,7 +75,7 @@ def read_node_ips(value) end def normalise_list(ips) - ips.sort_by(&IPAddr.method(:new)) + ips.uniq.sort_by(&IPAddr.method(:new)) end def register_offense(node, new_ips, **params)