Upgrade rubocop-rails from 2.33.4 to 2.34.2 and address related offenses (#37243)

This commit is contained in:
Nicholas La Roux
2025-12-15 07:57:16 -05:00
committed by GitHub
parent 5fa7654688
commit 09ab2829da
7 changed files with 8 additions and 8 deletions

View File

@@ -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)