Remove unecessary unlink before writing archive
parent
074af5dc54
commit
6ee08a2046
|
@ -39,9 +39,6 @@ class PharArchiver implements ArchiverInterface
|
||||||
$excludePatterns = $this->generatePatterns($excludes);
|
$excludePatterns = $this->generatePatterns($excludes);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (file_exists($target)) {
|
|
||||||
unlink($target);
|
|
||||||
}
|
|
||||||
$phar = new \PharData($target, null, null, static::$formats[$format]);
|
$phar = new \PharData($target, null, null, static::$formats[$format]);
|
||||||
$finder = new Finder\Finder();
|
$finder = new Finder\Finder();
|
||||||
$finder
|
$finder
|
||||||
|
|
Loading…
Reference in New Issue