Skip to content

Commit

Permalink
Prevent caching zip files that will never be used
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Jun 8, 2022
1 parent af16dfd commit c0186f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zipper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function create(Collection $files, ?string $filename = null): mixe

$files->each(fn ($file) => self::addFile($file, $zip));

return config('zipper.save')
return $filename && config('zipper.save')
? self::cache($zip)
: $zip;
}
Expand Down

0 comments on commit c0186f8

Please sign in to comment.