1
0
Fork 0

fix failing tests

pull/8810/head
Lucas D Hedding 2020-04-20 14:40:25 -06:00
parent 3e2163de5c
commit 2bf2e9fc60
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
->then($accept, $reject); ->then($accept, $reject);
} }
return $result->then(function ($result) use ($fileName, $checksum, $url, $eventDispatcher) { return $result->then(function ($result) use ($fileName, $checksum, $url, $package, $eventDispatcher) {
// in case of retry, the first call's Promise chain finally calls this twice at the end, // in case of retry, the first call's Promise chain finally calls this twice at the end,
// once with $result being the returned $fileName from $accept, and then once for every // once with $result being the returned $fileName from $accept, and then once for every
// failed request with a null result, which can be skipped. // failed request with a null result, which can be skipped.