Merge pull request #11146 from reitermarkus/sparkle-first

Always take first item in `Sparkle` strategy.
This commit is contained in:
Miccal Matthews 2021-04-16 08:44:49 +08:00 committed by GitHub
commit b29c636d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ module Homebrew
Item.new(**data) unless data.empty? Item.new(**data) unless data.empty?
end.compact end.compact
items.max_by(&:bundle_version) items.first
end end
# Checks the content at the URL for new versions. # Checks the content at the URL for new versions.