Use rubocop auto correct to fix Style/SafeNavigation issue

This commit is contained in:
Luis Ramos
2020-06-22 13:26:02 +01:00
parent 1b6e51c79e
commit b879439d58
9 changed files with 14 additions and 19 deletions

View File

@@ -92,11 +92,9 @@ module Discourse
payload[k] = val
end
if @custom_fields
@custom_fields.each do |k, v|
@custom_fields&.each do |k, v|
payload["custom.#{k}"] = v.to_s
end
end
Rack::Utils.build_query(payload)
end