summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-08-05 16:07:26 +0000
committerStan Hu <stanhu@gmail.com>2019-08-05 16:07:26 +0000
commit92d273a9e6fd4e68ba501e8f2c6ce39a67d5b920 (patch)
tree18a00ab537511a4082579b138e9fed6ea4aa3e5f
parent3dfc89ade452ad7f0185653b30ed1d4bb2544fb0 (diff)
downloadgitlab-ce-92d273a9e6fd4e68ba501e8f2c6ce39a67d5b920.tar.gz
Use select instead of filter to support 2.5
-rw-r--r--app/finders/branches_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/branches_finder.rb b/app/finders/branches_finder.rb
index b462c8053fa..291a24c1405 100644
--- a/app/finders/branches_finder.rb
+++ b/app/finders/branches_finder.rb
@@ -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