From af2c45b2970b7af07844ee74859b523faa4ba341 Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Mon, 26 Jul 2021 20:34:12 -0400 Subject: [PATCH] Git: compact, uniq array from strategy block --- Library/Homebrew/livecheck/strategy/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/livecheck/strategy/git.rb b/Library/Homebrew/livecheck/strategy/git.rb index f8c1aee36f..50a0e509a2 100644 --- a/Library/Homebrew/livecheck/strategy/git.rb +++ b/Library/Homebrew/livecheck/strategy/git.rb @@ -103,7 +103,7 @@ module Homebrew when String match_data[:matches][value] = Version.new(value) when Array - value.each do |tag| + value.compact.uniq.each do |tag| match_data[:matches][tag] = Version.new(tag) end when nil