Skip to content

Commit

Permalink
Fix bug with status code comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed May 12, 2020
1 parent 8481781 commit 0cda75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/src/RuntimeVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function currentVersion($options = [])
$response = $this->remoteRequest->get(self::RUNTIME_METADATA_ENDPOINT);
$statusCode = $response->getStatusCode();

if (200 < $statusCode || $statusCode >= 300) {
if ($statusCode < 200 || $statusCode >= 300) {
return '0';
}

Expand Down

0 comments on commit 0cda75a

Please sign in to comment.