Skip to content

Commit 22f0327

Browse files
authored
fix: check for nullish prop instead of falsy
1 parent 5e23979 commit 22f0327

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/core/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ type ConfigProperty<T> = T | ConfigPropertyResolver<T>;
124124

125125
/** @internal */
126126
export function resolveConfigProperty<T>(prop: ConfigProperty<T> | undefined, initialValue: T): T {
127-
if (!prop) {
127+
if (prop === undefined || prop === null) {
128128
return initialValue;
129129
}
130130

0 commit comments

Comments
 (0)