From 835b65fd9ec6bf0450afdfca62345b97a2a9adbe Mon Sep 17 00:00:00 2001 From: Audrius Vaitonis Date: Fri, 28 Jul 2023 09:50:32 +0100 Subject: [PATCH] feat(APIM-468): removed undefined return var type --- src/helpers/get-int-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/get-int-config.ts b/src/helpers/get-int-config.ts index ad5391e0..02b25e8c 100644 --- a/src/helpers/get-int-config.ts +++ b/src/helpers/get-int-config.ts @@ -1,7 +1,7 @@ import { InvalidConfigException } from '@ukef/config/invalid-config.exception'; // This helper function is used to get integer from configuration. -export const getIntConfig = (environmentVariable: string, defaultValue?: number): number | undefined => { +export const getIntConfig = (environmentVariable: string, defaultValue?: number): number => { if (typeof environmentVariable === 'undefined') { if (typeof defaultValue === 'undefined') { throw new InvalidConfigException(`Environment variable is missing and doesn't have default value.`);