DEV: Update to lastest rubocop-discourse

This commit is contained in:
Loïc Guitaut
2024-05-27 12:27:13 +02:00
committed by Loïc Guitaut
parent 3b6d4c830f
commit 2a28cda15c
164 changed files with 269 additions and 263 deletions

View File

@ -383,7 +383,7 @@ class ImportScripts::Drupal < ImportScripts::Base
end
upload_html = html_for_upload(upload, filename)
new_raw = "#{new_raw}\n\n#{upload_html}" unless new_raw.include?(upload_html)
new_raw = "#{new_raw}\n\n#{upload_html}" if new_raw.exclude?(upload_html)
if new_raw != post.raw
PostRevisor.new(post).revise!(