Fix linter

This commit is contained in:
Matej Bačo 2022-07-24 08:22:24 +00:00
parent 15427e0aa1
commit 61cba414bf

View file

@ -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);
}