Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Revert "Fix the unused local variable issue"
Browse files Browse the repository at this point in the history
This reverts commit a386bf5 as it does not fix the issue as expected.
  • Loading branch information
Deniz Berktunali committed Nov 1, 2017
1 parent a386bf5 commit 66bdb0b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,6 @@ private static function getRetryDecider()
Response $response = null,
RequestException $exception = null
) {
/**
* @var mixed This variable has the sole purpose of shutting codeclimate up.
* Listen codeclimate, I know it's stupid, but play stupid games, win stupid prizes, eh?
* Can be removed safely after codeclimate is configured to ignore this single instance of
* "avoid unused local variables such as $request"
*/
$garbage = $request;
$returnValue = null;
// if we failed more than MAX_RETRIES times, we give up
if ($retries >= self::MAX_RETRIES) {
Expand Down

0 comments on commit 66bdb0b

Please sign in to comment.