chore: simplify return statement

This commit is contained in:
Piotr Łoboda 2026-02-25 17:07:29 +01:00
parent 52fa2fcb50
commit d4b197a7c1

View file

@ -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<boolean> {