From 0c6a5b8ee0d2e40106e8356a0cd4ac22c6a05167 Mon Sep 17 00:00:00 2001 From: aynsix Date: Tue, 26 Nov 2024 14:22:04 +0300 Subject: [PATCH] some fix --- databox/api/src/Integration/Phrasea/Expose/ExposeClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }