burp-suite: Fix RuboCop Performance/MapCompact offenses

This commit is contained in:
Issy Long
2024-02-26 15:16:12 +00:00
parent df2177d6bd
commit b71adf78c5
+2 -2
View File
@@ -16,14 +16,14 @@ cask "burp-suite" do
all_versions = json["ResultSet"]["Results"]
next if all_versions.blank?
all_versions.map do |item|
all_versions.filter_map do |item|
item["version"] if
item["releaseChannels"].include?("Stable") &&
item["categories"].include?("Community") &&
item["builds"].any? do |build|
build["ProductPlatform"] == arch.to_s
end
end.compact
end
end
end