Autofix Rails/EagerEvaluationLogMessage (#23429)

* Autofix Rails/EagerEvaluationLogMessage

* Update spec for debug block syntax
This commit is contained in:
Nick Schonning
2023-02-06 21:44:36 -05:00
committed by GitHub
parent 6a71bb23c2
commit ed570050c6
17 changed files with 21 additions and 19 deletions

View File

@ -248,7 +248,7 @@ class LinkDetailsExtractor
structured_data
rescue Oj::ParseError, EncodingError
Rails.logger.debug("Invalid JSON-LD in #{@original_url}")
Rails.logger.debug { "Invalid JSON-LD in #{@original_url}" }
next
end.first
end