Git: compact, uniq array from strategy block
This commit is contained in:
parent
a970780851
commit
af2c45b297
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user