Make Rubocop happy

This commit is contained in:
Gerhard Schlager 2019-03-25 17:04:45 +01:00
parent 467c17da53
commit cd4fd447ca

View File

@ -370,12 +370,12 @@ def migrate_to_s3
"\\[img\\]/uploads/#{db}/original/(\\dX/(?:[a-f0-9]/)*[a-f0-9]{40}[a-z0-9\\.]*)\\[/img\\]", "\\[img\\]/uploads/#{db}/original/(\\dX/(?:[a-f0-9]/)*[a-f0-9]{40}[a-z0-9\\.]*)\\[/img\\]",
"[img]#{SiteSetting.Upload.s3_base_url}/#{prefix}\\1[/img]" "[img]#{SiteSetting.Upload.s3_base_url}/#{prefix}\\1[/img]"
] ]
].each do |from, to| ].each do |from_url, to_url|
if true if true
puts "REPLACING '#{from}' WITH '#{to}'" puts "REPLACING '#{from_url}' WITH '#{to_url}'"
else else
DbHelper.regexp_replace(from, to) DbHelper.regexp_replace(from_url, to_url)
end end
end end