Autofix Rails/EagerEvaluationLogMessage (#23429)
* Autofix Rails/EagerEvaluationLogMessage * Update spec for debug block syntax
This commit is contained in:
		@@ -11,7 +11,7 @@ class ActivityPub::ProcessCollectionService < BaseService
 | 
			
		||||
    begin
 | 
			
		||||
      @json = compact(@json) if @json['signature'].is_a?(Hash)
 | 
			
		||||
    rescue JSON::LD::JsonLdError => e
 | 
			
		||||
      Rails.logger.debug "Error when compacting JSON-LD document for #{value_or_id(@json['actor'])}: #{e.message}"
 | 
			
		||||
      Rails.logger.debug { "Error when compacting JSON-LD document for #{value_or_id(@json['actor'])}: #{e.message}" }
 | 
			
		||||
      @json = original_json.without('signature')
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
@@ -72,7 +72,7 @@ class ActivityPub::ProcessCollectionService < BaseService
 | 
			
		||||
    @account = nil unless @account.is_a?(Account)
 | 
			
		||||
    @account
 | 
			
		||||
  rescue JSON::LD::JsonLdError, RDF::WriterError => e
 | 
			
		||||
    Rails.logger.debug "Could not verify LD-Signature for #{value_or_id(@json['actor'])}: #{e.message}"
 | 
			
		||||
    Rails.logger.debug { "Could not verify LD-Signature for #{value_or_id(@json['actor'])}: #{e.message}" }
 | 
			
		||||
    nil
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user