From 7b48c2787ef3df4da3c5adab726c47b9426363ca Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Tue, 28 Feb 2023 13:37:34 +0000 Subject: [PATCH] lint --- packages/worker/src/api/controllers/global/configs.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/worker/src/api/controllers/global/configs.ts b/packages/worker/src/api/controllers/global/configs.ts index 230bf8abd9..02459855c2 100644 --- a/packages/worker/src/api/controllers/global/configs.ts +++ b/packages/worker/src/api/controllers/global/configs.ts @@ -139,16 +139,14 @@ async function hasActivatedConfig(ssoConfigs?: SSOConfigs) { if (!ssoConfigs) { ssoConfigs = await getSSOConfigs() } - return !!Object.values(ssoConfigs).find(c => c?.activated) + return !!Object.values(ssoConfigs).find(c => c?.activated) } async function verifySettingsConfig(config: SettingsInnerConfig) { if (config.isSSOEnforced) { const valid = await hasActivatedConfig() if (!valid) { - throw new Error( - "Cannot enforce SSO without an activated configuration" - ) + throw new Error("Cannot enforce SSO without an activated configuration") } } }