diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-11-12 13:58:27 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-11-12 13:58:27 +0900 |
commit | 723dbccdaa4cd4093f99d4dc39acf670ac1eda8b (patch) | |
tree | cea61c82610b860373b82d89f2aea671c2034823 | |
parent | 7bcd65cd9d1e357091f995caf0e7967e4151db83 (diff) | |
download | gitlab-ce-remove-unnecessary-query-in-commits-controller.tar.gz |
Remove unnecessary query execution in commits controllerremove-unnecessary-query-in-commits-controller
-rw-r--r-- | app/controllers/projects/commits_controller.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/controllers/projects/commits_controller.rb b/app/controllers/projects/commits_controller.rb index 84a2a461da7..7fa26359603 100644 --- a/app/controllers/projects/commits_controller.rb +++ b/app/controllers/projects/commits_controller.rb @@ -19,9 +19,6 @@ class Projects::CommitsController < Projects::ApplicationController # rubocop: disable CodeReuse/ActiveRecord def show - @merge_request = MergeRequestsFinder.new(current_user, project_id: @project.id).execute.opened - .find_by(source_project: @project, source_branch: @ref, target_branch: @repository.root_ref) - respond_to do |format| format.html format.atom { render layout: 'xml.atom' } |