2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Make import scripts work with frozen strings

This commit is contained in:
Gerhard Schlager 2019-05-30 22:20:57 +02:00
parent c70d0c6659
commit 0f3c3bc309
14 changed files with 19 additions and 17 deletions

View file

@ -255,7 +255,7 @@ class ImportScripts::Answerbase < ImportScripts::Base
upload = @uploader.create_upload(user_id, path, filename)
if upload.present? && upload.persisted? && !upload_ids.include?(upload.id)
raw << "\n" << @uploader.html_for_upload(upload, filename)
raw = "#{raw}\n#{@uploader.html_for_upload(upload, filename)}"
end
else
STDERR.puts "Could not find file: #{path}"