mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
burp-suite: Fix RuboCop Performance/MapCompact offenses
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user