Skip to content

Commit

Permalink
Remove a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Mar 16, 2023
1 parent 453e010 commit 25267b2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/EnvatoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public function getDownloadUrl($itemIdOrApiUrl): ?string
// TODO HTTP 429 response. Included in this response is a HTTP header Retry-After
if ($response->getStatusCode() === 200) {
$urlData = \json_decode($response->getBody() ?? '', true);
// TODO Check JSON
if (\is_array($urlData)) {
if (\array_key_exists('wordpress_theme', $urlData)) {
return $urlData['wordpress_theme'];
Expand Down

0 comments on commit 25267b2

Please sign in to comment.