Git: compact, uniq array from strategy block
This commit is contained in:
parent
a970780851
commit
af2c45b297
@ -103,7 +103,7 @@ module Homebrew
|
|||||||
when String
|
when String
|
||||||
match_data[:matches][value] = Version.new(value)
|
match_data[:matches][value] = Version.new(value)
|
||||||
when Array
|
when Array
|
||||||
value.each do |tag|
|
value.compact.uniq.each do |tag|
|
||||||
match_data[:matches][tag] = Version.new(tag)
|
match_data[:matches][tag] = Version.new(tag)
|
||||||
end
|
end
|
||||||
when nil
|
when nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user