From 5fe46221df09605c44ffd5db950d4035e6763e83 Mon Sep 17 00:00:00 2001 From: Peter Phanouvong Date: Thu, 7 Nov 2024 09:36:23 +1100 Subject: [PATCH] fix: remove noisy error log --- src/session/sessionManager.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/session/sessionManager.js b/src/session/sessionManager.js index e21edf8..812b03e 100644 --- a/src/session/sessionManager.js +++ b/src/session/sessionManager.js @@ -30,14 +30,13 @@ const COOKIE_LIST = [ * @returns {Promise} */ export const sessionManager = async (req, res) => { - try{ + try { const cookieStore = await cookies(); if (!req) return appRouterSessionManager(cookieStore); - return isAppRouter(req) - ? appRouterSessionManager(cookieStore) - : pageRouterSessionManager(req, res); + return isAppRouter(req) + ? appRouterSessionManager(cookieStore) + : pageRouterSessionManager(req, res); } catch (error) { - console.error('Failed to initialize session manager:', error); throw error; } };