Commit e13b5dc7 authored by Patrick Derichs's avatar Patrick Derichs

Change block parameter name to params

parent 0e99daae
...@@ -227,7 +227,7 @@ module IssuableActions ...@@ -227,7 +227,7 @@ module IssuableActions
{ {
target: @issuable, target: @issuable,
notes_filter: notes_filter notes_filter: notes_filter
}.tap { |hash| hash[:project] = project if respond_to?(:project, true) } }.tap { |new_params| new_params[:project] = project if respond_to?(:project, true) }
end end
# rubocop:enable Gitlab/ModuleWithInstanceVariables # rubocop:enable Gitlab/ModuleWithInstanceVariables
end end
...@@ -27,8 +27,8 @@ class Snippets::NotesController < ApplicationController ...@@ -27,8 +27,8 @@ class Snippets::NotesController < ApplicationController
alias_method :noteable, :snippet alias_method :noteable, :snippet
def finder_params def finder_params
params.merge(last_fetched_at: last_fetched_at, target_id: snippet.id, target_type: 'personal_snippet').tap do |hash| params.merge(last_fetched_at: last_fetched_at, target_id: snippet.id, target_type: 'personal_snippet').tap do |merged_params|
hash[:project] = project if respond_to?(:project) merged_params[:project] = project if respond_to?(:project)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment