Skip to content

Commit

Permalink
fix nested condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jan 21, 2021
1 parent b6bbcfe commit ed92a4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/collectors/DummyRequestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ public function isSuccess()
*/
public function getResponseStatusCode()
{
return $this->success ? $this->statusCode ?: 200 : $this->statusCode ?: 500;
if ($this->success) {
return $this->statusCode ?: 200;
}

return $this->statusCode ?: 500;
}

/**
Expand Down

0 comments on commit ed92a4a

Please sign in to comment.