Skip to content

Commit

Permalink
chore: removed body rewind (no longer needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepimpao committed May 28, 2024
1 parent 51bd5b6 commit 8e87549
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/SportMonksFootball.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ private function configureApi(): void

$data = \json_decode($response->getBody()->getContents(), true);

// since body is a stream, it must be rewound for later calls (ResponseContentsEvent)
// otherwise contents would be empty
$response->getBody()->rewind();

// if response contains a message it is an error
$errorMessage = $data['message'] ?? null;

Expand Down

0 comments on commit 8e87549

Please sign in to comment.