From 1fe5fbf9e179c747a1cfeb52a18a4cf0077d5173 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Tue, 29 Nov 2022 22:42:02 +0000 Subject: [PATCH] Remove else --- src/shadowbox/infrastructure/logging.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shadowbox/infrastructure/logging.ts b/src/shadowbox/infrastructure/logging.ts index a66a2547..a07aafe1 100644 --- a/src/shadowbox/infrastructure/logging.ts +++ b/src/shadowbox/infrastructure/logging.ts @@ -64,9 +64,8 @@ const maxMsgLevel = logLevelFromEnvironment(); function logLevelFromEnvironment(): LogLevel { if (process.env.LOG_LEVEL) { return parseLogLevel(process.env.LOG_LEVEL); - } else { - return LogLevel.INFO; } + return LogLevel.INFO; } function parseLogLevel(levelStr: string) {