From b81e9ffd4742fbe3c82ecb0d3da7a4802e39dd2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 24 May 2023 18:32:03 +0200 Subject: [PATCH] Fix format --- app/workers/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/workers/functions.php b/app/workers/functions.php index 1e1a75d92b..cbd54cb4da 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -41,7 +41,7 @@ Server::setResource('execute', function () { string $executionId = null, ) { $error = null; // Used to re-throw at the end to trigger Logger (Sentry) - + $user ??= new Document(); $functionId = $function->getId(); $deploymentId = $function->getAttribute('deployment', ''); @@ -222,7 +222,7 @@ Server::setResource('execute', function () { ->submit(); } - if(!empty($error)) { + if (!empty($error)) { $projectId = $project->getId(); throw new Exception("Error in project #{$projectId}, function #{$functionId}: " . $error); }