summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-11-24 13:32:01 +0100
committerFrancisco Lopez <fjlopez@gitlab.com>2017-12-01 18:32:12 +0100
commit7c7877b54dfb0a07bf128102226e338463654431 (patch)
treeab6b0d37ac90c72ca26da5a845609281df8cd370
parenta2babf32fe2b57850bd678919947d53e5127f6fe (diff)
downloadgitlab-ce-7c7877b54dfb0a07bf128102226e338463654431.tar.gz
Small renaming
-rw-r--r--lib/api/groups.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index 746dcc9fc91..05443329a32 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -63,11 +63,11 @@ module API
forked_project_link: :forked_from_project,
forked_from_project: [:route, :forks, namespace: :route, tags: :taggings])
projects = reorder_projects(projects)
- paginated_projects = paginate(projects)
- projects_with_fork = paginated_projects + paginated_projects.map(&:forked_from_project).compact
+ projects = paginate(projects)
+ projects_with_fork = projects + projects.map(&:forked_from_project).compact
::Projects::BatchForksCountService.new(projects_with_fork).refresh_cache
- ::Projects::BatchOpenIssuesCountService.new(paginated_projects).refresh_cache
- paginated_projects
+ ::Projects::BatchOpenIssuesCountService.new(projects).refresh_cache
+ projects
end
def present_groups(params, groups)