mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:
committed by
Loïc Guitaut
parent
3b6d4c830f
commit
2a28cda15c
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user