Fixes CODEOCEAN-68 with empty file
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user