From 3b1e9f51313695c4981a7309d5bd4abe18e16c86 Mon Sep 17 00:00:00 2001 From: Andreas Weber Date: Mon, 28 Aug 2023 19:11:33 +0200 Subject: [PATCH] fix: settings ignore "" (#215) --- CHANGELOG.md | 6 ++++++ src/config.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4650eac..d4e73a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [Unreleased] + +### Fixes + +- Settings ignore `""` value (#215) + ## [6.6.3] (2023-07-25) ### Fixes diff --git a/src/config.ts b/src/config.ts index 61ea018..ac34cc0 100644 --- a/src/config.ts +++ b/src/config.ts @@ -168,7 +168,7 @@ export async function getEnvironmentConfig(fileName: httpyac.PathLike): Promise< } function getValueOrUndefined(val: T) { - if (val === null || val === undefined) { + if (val === null || val === undefined || val === '') { return undefined; } return val;