Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-12 07:58:27 +0300
committerShinya Maeda <shinya@gitlab.com>2018-11-12 07:58:27 +0300
commit723dbccdaa4cd4093f99d4dc39acf670ac1eda8b (patch)
treecea61c82610b860373b82d89f2aea671c2034823
parent7bcd65cd9d1e357091f995caf0e7967e4151db83 (diff)
Remove unnecessary query execution in commits controllerremove-unnecessary-query-in-commits-controller
-rw-r--r--app/controllers/projects/commits_controller.rb3
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' }