mirror of
https://github.com/owncloud/ocis
synced 2026-05-05 06:32:34 +02:00
refactor: add no_useless_else lint rule
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
This commit is contained in:
@@ -589,9 +589,8 @@ class GraphContext implements Context {
|
||||
if ($response->getStatusCode() === 200) {
|
||||
$jsonResponseBody = $this->featureContext->getJsonDecodedResponse($response);
|
||||
return $jsonResponseBody["value"];
|
||||
} else {
|
||||
$this->throwHttpException($response, "Could not retrieve groups list.");
|
||||
}
|
||||
$this->throwHttpException($response, "Could not retrieve groups list.");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -656,9 +655,8 @@ class GraphContext implements Context {
|
||||
public function getArrayOfUsersResponded(ResponseInterface $response): array {
|
||||
if ($response->getStatusCode() === 200) {
|
||||
return $this->featureContext->getJsonDecodedResponse($response);
|
||||
} else {
|
||||
$this->throwHttpException($response, "Could not retrieve group members list.");
|
||||
}
|
||||
$this->throwHttpException($response, "Could not retrieve group members list.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user