Use select instead of filter to support 2.5
This commit is contained in:
parent
3dfc89ade4
commit
92d273a9e6
|
@ -69,7 +69,7 @@ class BranchesFinder
|
|||
return branches unless names
|
||||
|
||||
branch_names = names.to_set
|
||||
branches.filter do |branch|
|
||||
branches.select do |branch|
|
||||
branch_names.include?(branch.name)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue