Skip to content

Commit

Permalink
Merge pull request #32 from odolbeau/code-cleaning
Browse files Browse the repository at this point in the history
Remove useless breaks
  • Loading branch information
Olivier Dolbeau committed Jul 1, 2019
2 parents 8b25127 + 49197bd commit 5cec3b6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Api/HttpApi.php
Expand Up @@ -179,17 +179,12 @@ protected function handleErrors(ResponseInterface $response)
switch ($response->getStatusCode()) {
case 401:
throw new DomainExceptions\InvalidApiKeyException($message);
break;
case 403:
throw new DomainExceptions\InsufficientPrivilegesException($message);
break;
case 404:
throw new DomainExceptions\NotFoundException($message);
break;

default:
throw new DomainExceptions\UnknownErrorException($message);
break;
}
}
}

0 comments on commit 5cec3b6

Please sign in to comment.