Change block parameter name to params

This commit is contained in:
Patrick Derichs 2019-08-01 10:42:12 +02:00
parent 0e99daae4a
commit e13b5dc754
2 changed files with 3 additions and 3 deletions

View file

@ -227,7 +227,7 @@ module IssuableActions
{
target: @issuable,
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
# rubocop:enable Gitlab/ModuleWithInstanceVariables
end

View file

@ -27,8 +27,8 @@ class Snippets::NotesController < ApplicationController
alias_method :noteable, :snippet
def finder_params
params.merge(last_fetched_at: last_fetched_at, target_id: snippet.id, target_type: 'personal_snippet').tap do |hash|
hash[:project] = project if respond_to?(:project)
params.merge(last_fetched_at: last_fetched_at, target_id: snippet.id, target_type: 'personal_snippet').tap do |merged_params|
merged_params[:project] = project if respond_to?(:project)
end
end