1
0
Fork 0

Combine open zip call with conditional

pull/7658/head
Kristof Ringleff, Fooman 2018-09-24 20:28:22 +12:00
parent bcf4e94e8a
commit 2ed573b22d
1 changed files with 1 additions and 3 deletions

View File

@ -126,9 +126,7 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
private function getComposerInformation(\SplFileInfo $file)
{
$zip = new \ZipArchive();
$res = $zip->open($file->getPathname());
if ($res !== true) {
if ($zip->open($file->getPathname()) !== true) {
return false;
}