Autofix Rails/EagerEvaluationLogMessage (#23429)
* Autofix Rails/EagerEvaluationLogMessage * Update spec for debug block syntax
This commit is contained in:
parent
6a71bb23c2
commit
ed570050c6
17 changed files with 21 additions and 19 deletions
|
@ -6,7 +6,7 @@ class ActivityPub::FetchRemoteAccountService < ActivityPub::FetchRemoteActorServ
|
|||
actor = super
|
||||
return actor if actor.nil? || actor.is_a?(Account)
|
||||
|
||||
Rails.logger.debug "Fetching account #{uri} failed: Expected Account, got #{actor.class.name}"
|
||||
Rails.logger.debug { "Fetching account #{uri} failed: Expected Account, got #{actor.class.name}" }
|
||||
raise Error, "Expected Account, got #{actor.class.name}" unless suppress_errors
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue