feat: fix throw

This commit is contained in:
Christy Jacob
2022-03-01 21:53:28 +04:00
parent 0e18469000
commit 2cf9364498
-1
View File
@@ -999,7 +999,6 @@ App::get('/v1/functions/:functionId/executions')
$function = Authorization::skip(fn() => $dbForProject->getDocument('functions', $functionId));
throw new Exception('Function not found', 404, Exception::FUNCTION_NOT_FOUND);
if ($function->isEmpty()) {
throw new Exception('Function not found', 404, Exception::FUNCTION_NOT_FOUND);
}