From d4b197a7c1d9e4897cd07b18452fb2aded23cbd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=81oboda?= Date: Wed, 25 Feb 2026 17:07:29 +0100 Subject: [PATCH] chore: simplify return statement --- lib/config.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/config.ts b/lib/config.ts index 1d44fef..444d62f 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -124,11 +124,7 @@ export class AppConfig { const areSignupsAllowed = (sso) ? this.config.auth.enableSingleSignOnSignUp : this.config.auth.allowSignups; const areThereAdmins = await UserModel.isThereAnAdmin(); - if (areSignupsAllowed || !areThereAdmins) { - return true; - } - - return false; + return areSignupsAllowed || !areThereAdmins; } static async isAppEnabled(app: OptionalApp): Promise {