Skip to content

Commit ef03890

Browse files
refactor double equality of null to more explicit null and undefined
1 parent 18f598b commit ef03890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registry/routes/helpers/apply-default-values.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function applyDefaultValues(
1111
optionalParametersWithDefaults.forEach(
1212
([expectedParameterName, expectedParameter]) => {
1313
const param = requestParameters[expectedParameterName];
14-
if (param == null) {
14+
if (param === null || param === undefined) {
1515
requestParameters[expectedParameterName] = expectedParameter.default!;
1616
}
1717
}

0 commit comments

Comments
 (0)