diff --git a/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php b/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php index 433b4ee90..e5c592aec 100644 --- a/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php +++ b/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php @@ -255,7 +255,7 @@ public function deleteAsset(IntegrationConfig $config, IntegrationToken $integra ; } - private function putPart(string $url, mixed $handleFile, int $partSize, int $retryCount) + private function putPart(string $url, mixed $handleFile, int $partSize, int $retryCount): array { if ($retryCount > 0) { $retryCount--; @@ -265,7 +265,7 @@ private function putPart(string $url, mixed $handleFile, int $partSize, int $ret ])->getHeaders(); } catch (\Throwable $e) { if ($retryCount == 0) { - throw $e; // retry unsuccess + throw $e; } $this->putPart($url, $handleFile, $partSize, $retryCount); }