Fixes CODEOCEAN-68 with empty file

This commit is contained in:
Sebastian Serth
2021-11-18 13:37:32 +01:00
parent b07560bc7e
commit 4cddcb6544

View File

@ -114,7 +114,7 @@ class Runner::Strategy::Poseidon < Runner::Strategy
copy = files.map do |file| copy = files.map do |file|
{ {
path: file.filepath, path: file.filepath,
content: Base64.strict_encode64(file.content.presence || file.native_file.read), content: Base64.strict_encode64(file.content.presence || file.native_file.read || ''),
} }
end end