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

@@ -19,7 +19,7 @@ class BackfillPostUploadReverseIndex < ActiveRecord::Migration[4.2]
def add_to_reverse_index(url, post_id)
# make sure we have a url to insert
return unless url.present?
return if url.blank?
# local uploads are relative
if index = url.index(local_base_url)
url = url[index..-1]

View File

@@ -73,9 +73,9 @@ class DisallowMultiLevelsThemeComponents < ActiveRecord::Migration[5.2]
)
children.each do |child|
unless @handled.include?(
[top_parent.parent_theme_id, child.parent_theme_id, child.child_theme_id],
)
if @handled.exclude?(
[top_parent.parent_theme_id, child.parent_theme_id, child.child_theme_id],
)
migrate_child(child, top_parent)
end
end