DEV: Update to lastest rubocop-discourse

This commit is contained in:
Loïc Guitaut
2024-05-27 18:06:14 +02:00
committed by Loïc Guitaut
parent c4c3e8d40e
commit db1c19d472
164 changed files with 269 additions and 263 deletions
@@ -136,7 +136,7 @@ module ImportScripts::PhpBB3
# This appears to be a reply. Let's try to find the Discourse topic_id for this message.
parent_msg_id = get_import_id(row[:root_msg_id])
parent = @lookup.topic_lookup_from_imported_post_id(parent_msg_id)
parent[:topic_id] unless parent.blank?
parent[:topic_id] if parent.present?
end
end
@@ -56,7 +56,7 @@ module ImportScripts::PhpBB3
normalization = "/#{prefix.gsub("/", '\/')}\\#{normalization}"
end
normalizations << normalization unless normalizations.include?(normalization)
normalizations << normalization if normalizations.exclude?(normalization)
end
def permalink_exists(url)