Skip to content

Commit 2d6b255

Browse files
pingerswebflo
authored andcommitted
Fixes attempting to curl when there is nothing to curl. (#80)
1 parent 76342f9 commit 2d6b255

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PrestissimoFileFetcher.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ protected function fetchWithPrestissimo($version, $destination, $override) {
5555

5656
$successCnt = $failureCnt = 0;
5757
$totalCnt = count($requests);
58+
if ($totalCnt == 0) {
59+
return;
60+
}
5861

5962
$multi = new CurlMulti();
6063
$multi->setRequests($requests);

0 commit comments

Comments
 (0)