diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2019-08-05 17:44:20 +0300 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2019-08-05 17:44:20 +0300 |
commit | feb83388204624ff04cc74811debf333a84628c5 (patch) | |
tree | c76946db8123c266d52f6be140d3fe0e840bd7a6 | |
parent | b82931359b5f9656d739bfbb600438ddf2213ce0 (diff) | |
download | gitlab-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.rb | 2 |
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 |