diff options
author | Camil Staps <info@camilstaps.nl> | 2019-01-28 19:43:31 +0100 |
---|---|---|
committer | Camil Staps <info@camilstaps.nl> | 2019-08-07 20:49:15 +0200 |
commit | b7b57b83cc294727736c2276bd72a7e47c313e68 (patch) | |
tree | 2c9be027248ee9a77f896400aae89a370f9f30d6 | |
parent | 2ca4d58165e3c135004b088211aeaf5743065e75 (diff) | |
download | gitlab-ce-b7b57b83cc294727736c2276bd72a7e47c313e68.tar.gz |
Avoid unnecessary includes in StarredProjectsFinder
-rw-r--r-- | app/finders/starred_projects_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/starred_projects_finder.rb b/app/finders/starred_projects_finder.rb index 5d0c6820a26..0a67a1242ff 100644 --- a/app/finders/starred_projects_finder.rb +++ b/app/finders/starred_projects_finder.rb @@ -2,7 +2,7 @@ class StarredProjectsFinder < ProjectsFinder def initialize(user, params: {}, current_user: nil) - project_ids = user.starred_projects.includes(:creator).select(:id) + project_ids = user.starred_projects.select(:id) super(params: params, current_user: current_user, project_ids_relation: project_ids) end end |