From 25e10ddae8395c0f7325e012bbbc487382e666c6 Mon Sep 17 00:00:00 2001 From: AI-Mozi Date: Thu, 2 May 2024 09:03:23 +0200 Subject: [PATCH] Remove redundant `IPRange` initialization --- lib/ronin/recon/builtin/net/ip_range_enum.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ronin/recon/builtin/net/ip_range_enum.rb b/lib/ronin/recon/builtin/net/ip_range_enum.rb index 2cee339..6d90d39 100644 --- a/lib/ronin/recon/builtin/net/ip_range_enum.rb +++ b/lib/ronin/recon/builtin/net/ip_range_enum.rb @@ -53,9 +53,7 @@ class IPRangeEnum < Worker # An IP value. # def process(ip_range) - ip_range = Support::Network::IPRange.new(ip_range.range) - - ip_range.each do |address| + ip_range.range.each do |address| yield IP.new(address) end end