Skip to content

Commit

Permalink
🐛 fix IP fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
alaz committed Aug 16, 2024
1 parent 5295234 commit 339b48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/custom/ip_ranges.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 339b48d

Please sign in to comment.