mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Remove unnecessary check
This commit is contained in:
parent
76a0167700
commit
246dc07018
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ App::get('v1/console/resources/:resourceId')
|
|||
->action(function (string $resourceId, string $type, Response $response, Database $dbForConsole) {
|
||||
$document = Authorization::skip(fn () => $dbForConsole->getDocument('rules', $resourceId));
|
||||
|
||||
if ($document && !$document->isEmpty()) {
|
||||
if (!$document->isEmpty()) {
|
||||
throw new Exception(Exception::RESOURCE_ALREADY_EXISTS, 'Resource ID is already in use.');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue