Commit b5e2c061 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Remove check if a file has content before adding it to ZIP

parent e573c62e
Pipeline #9226 passed with stages
in 7 minutes and 41 seconds
......@@ -55,7 +55,7 @@ class ArchiveUtility
if (empty($path)) {
continue;
}
if (!empty($content) && !$zipArchive->addFromString($path, (string)$content)) {
if (!$zipArchive->addFromString($path, (string)$content)) {
throw new \Exception('Could not write file "' . $path . '" into ZIP file');
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment