Skip to content

Commit

Permalink
fix: settings ignore "" (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Aug 28, 2023
1 parent 00caefc commit 3b1e9f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [Unreleased]

### Fixes

- Settings ignore `""` value (#215)

## [6.6.3] (2023-07-25)

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function getEnvironmentConfig(fileName: httpyac.PathLike): Promise<
}

function getValueOrUndefined<T>(val: T) {
if (val === null || val === undefined) {
if (val === null || val === undefined || val === '') {
return undefined;
}
return val;
Expand Down

0 comments on commit 3b1e9f5

Please sign in to comment.