From bbf8a10f2c22c33c7400d6a5fce53a5107439396 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 15 Apr 2021 01:15:47 +0200 Subject: [PATCH] Always take first item in `Sparkle` strategy. --- Library/Homebrew/livecheck/strategy/sparkle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/livecheck/strategy/sparkle.rb b/Library/Homebrew/livecheck/strategy/sparkle.rb index e2833eabc2..bb5320aa8a 100644 --- a/Library/Homebrew/livecheck/strategy/sparkle.rb +++ b/Library/Homebrew/livecheck/strategy/sparkle.rb @@ -91,7 +91,7 @@ module Homebrew Item.new(**data) unless data.empty? end.compact - items.max_by(&:bundle_version) + items.first end # Checks the content at the URL for new versions.