From eeba452fb536032b4dc467cd08e4cc7be338b5dd Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 18 Mar 2024 12:43:42 +0000 Subject: [PATCH] chore: linter --- app/controllers/api/avatars.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index 734cfb2dc5..d0f8072f2c 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -292,7 +292,7 @@ App::get('/v1/avatars/image') } catch (\Throwable) { throw new Exception(Exception::AVATAR_REMOTE_URL_FAILED); } - + if ($res->getStatusCode() !== 200) { throw new Exception(Exception::AVATAR_IMAGE_NOT_FOUND); } @@ -360,7 +360,7 @@ App::get('/v1/avatars/favicon') } catch (\Throwable) { throw new Exception(Exception::AVATAR_REMOTE_URL_FAILED); } - + if ($res->getStatusCode() !== 200) { throw new Exception(Exception::AVATAR_REMOTE_URL_FAILED); } @@ -429,7 +429,7 @@ App::get('/v1/avatars/favicon') ->fetch($outputHref); } catch (\Throwable) { throw new Exception(Exception::AVATAR_REMOTE_URL_FAILED); - } + } if ($res->getStatusCode() !== 200) { throw new Exception(Exception::AVATAR_ICON_NOT_FOUND);