Make rubocop happy

This commit is contained in:
Arpit Jalan 2017-08-04 12:30:35 +05:30
parent 687b05750b
commit c0a2d9e671
1 changed files with 4 additions and 4 deletions

View File

@ -452,10 +452,10 @@ task "import:create_vbulletin_permalinks" => :environment do
SiteSetting.permalink_normalizations = '/showthread.php\?t=(\d+).*/showthread.php?t=\1'
Topic.listable_topics.find_each do |topic|
tcf = topic.custom_fields
if tcf && tcf["import_id"]
Permalink.create(url: "showthread.php?t=#{tcf["import_id"]}", topic_id: topic.id) rescue nil
end
tcf = topic.custom_fields
if tcf && tcf["import_id"]
Permalink.create(url: "showthread.php?t=#{tcf["import_id"]}", topic_id: topic.id) rescue nil
end
end
Category.find_each do |cat|