Skip to content

Commit d4049bb

Browse files
committed
Fix recursive retry returns
1 parent a31b822 commit d4049bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Api/Api.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function get(
2323
if ($response_status === 403 || $response_status === 429) {
2424
$this->waitThrottle($response_status);
2525

26-
$this->get($url, $query_parameters);
26+
return $this->get($url, $query_parameters);
2727
}
2828

2929
return $this->parseResponse($response);
@@ -51,7 +51,7 @@ protected function post(
5151
if ($response_status === 403 || $response_status === 429) {
5252
$this->waitThrottle($response_status);
5353

54-
$this->post($url, $body);
54+
return $this->post($url, $body, $has_file);
5555
}
5656

5757
return $this->parseResponse($response);
@@ -72,7 +72,7 @@ protected function put(
7272
if ($response_status === 403 || $response_status === 429) {
7373
$this->waitThrottle($response_status);
7474

75-
$this->put($url, $body);
75+
return $this->put($url, $body);
7676
}
7777

7878
return $this->parseResponse($response);
@@ -93,7 +93,7 @@ protected function destroy(
9393
if ($response_status === 403 || $response_status === 429) {
9494
$this->waitThrottle($response_status);
9595

96-
$this->destroy($url, $query_parameters);
96+
return $this->destroy($url, $query_parameters);
9797
}
9898

9999
return $this->parseResponse($response);

0 commit comments

Comments
 (0)