Upgrade rubocop-rails from 2.33.4 to 2.34.2 and address related offenses (#37243)
This commit is contained in:
@@ -39,7 +39,7 @@ class ActivityPub::InboxesController < ActivityPub::BaseController
|
||||
return @body if defined?(@body)
|
||||
|
||||
@body = request.body.read
|
||||
@body.force_encoding('UTF-8') if @body.present?
|
||||
@body.presence&.force_encoding('UTF-8')
|
||||
|
||||
request.body.rewind if request.body.respond_to?(:rewind)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user