mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Fix linter
This commit is contained in:
parent
15427e0aa1
commit
61cba414bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1584,7 +1584,7 @@ App::put('/v1/projects/:projectId/variables/:functionId/:variableId')
|
|||
->inject('dbForConsole')
|
||||
->inject('dbForProject')
|
||||
->action(function (string $projectId, string $functionId, string $variableId, ?string $key, ?string $value, Response $response, Database $dbForConsole, Database $dbForProject) {
|
||||
if(empty($key) && empty($value)) {
|
||||
if (empty($key) && empty($value)) {
|
||||
throw new Exception('Missing key or value. Define at least one.', 400, Exception::VARIABLE_MISSING_PAYLOAD);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue