Use select instead of filter to support 2.5

This commit is contained in:
Igor 2019-08-05 16:07:26 +00:00 committed by Stan Hu
parent 3dfc89ade4
commit 92d273a9e6
1 changed files with 1 additions and 1 deletions

View File

@ -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