diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 65753fd660..9feaa4d38d 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -1653,7 +1653,6 @@ App::get('/v1/vcs/installations') $cursor = \reset($cursor); if ($cursor !== false) { - $validator = new Cursor(); if (!$validator->isValid($cursor)) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php index ff2f6a574b..f9589c4469 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php @@ -77,7 +77,6 @@ class XList extends Action $cursor = \reset($cursor); if ($cursor !== false) { - $validator = new Cursor(); if (!$validator->isValid($cursor)) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription());