mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 05:06:37 +00:00
Code clean up in Handlers.
This commit is contained in:
@@ -54,7 +54,7 @@ class UpdateRequest implements GithubRequest
|
||||
throw new FireflyException(sprintf('Response error from Github: %s', $e->getMessage()));
|
||||
}
|
||||
|
||||
if ($res->getStatusCode() !== 200) {
|
||||
if (200 !== $res->getStatusCode()) {
|
||||
throw new FireflyException(sprintf('Returned code %d, error: %s', $res->getStatusCode(), $res->getBody()->getContents()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user