From 6fed8b2edd639400e173478a087b0dff03a84c5e Mon Sep 17 00:00:00 2001 From: Terje Karlsen Date: Tue, 10 Oct 2023 13:55:47 +0200 Subject: [PATCH] =?UTF-8?q?Fjerner=20glemt=20console.log=20og=20un=C3=B8di?= =?UTF-8?q?g=20initialize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api-handlers/features.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/server/api-handlers/features.ts b/src/server/api-handlers/features.ts index 167dfbccb..396fb4471 100644 --- a/src/server/api-handlers/features.ts +++ b/src/server/api-handlers/features.ts @@ -42,12 +42,6 @@ const resolveRequestedFeatures = (requestedFeatures: string[]) => { }; export const getFeaturesHandler: RequestHandler = async (req, res) => { - // If for some reason the unleash instance is not initialized, - // make a new attempt. - if (!unleashInstance) { - await initializeUnleash(); - } - const { query } = req; if (!query?.feature) { res.status(400).json({ error: 'Missing feature query parameters' }); @@ -55,7 +49,6 @@ export const getFeaturesHandler: RequestHandler = async (req, res) => { } const requestedFeatures: string[] = forceArray(query.feature).filter((feature) => typeof feature === 'string'); - console.log(resolveRequestedFeatures(requestedFeatures)); res.json(resolveRequestedFeatures(requestedFeatures)); };