summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2019-08-05 17:44:20 +0300
committerIgor Drozdov <idrozdov@gitlab.com>2019-08-05 17:44:20 +0300
commitfeb83388204624ff04cc74811debf333a84628c5 (patch)
treec76946db8123c266d52f6be140d3fe0e840bd7a6
parentb82931359b5f9656d739bfbb600438ddf2213ce0 (diff)
downloadgitlab-ce-id-fix-diverging-counts.tar.gz
Use select instead of filter to support 2.5id-fix-diverging-counts
-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