Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-08-05 19:07:26 +0300
committerStan Hu <stanhu@gmail.com>2019-08-05 19:07:26 +0300
commit92d273a9e6fd4e68ba501e8f2c6ce39a67d5b920 (patch)
tree18a00ab537511a4082579b138e9fed6ea4aa3e5f /app
parent3dfc89ade452ad7f0185653b30ed1d4bb2544fb0 (diff)
Use select instead of filter to support 2.5
Diffstat (limited to 'app')
-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