Skip to content

Commit 8f6a8c0

Browse files
committed
fix(codegen): utilize loose equality for falsy null/undefined
1 parent 41815c0 commit 8f6a8c0

File tree

1 file changed

+1
-2
lines changed
  • smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/integration

1 file changed

+1
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
const isSerializableHeaderValue = (value: any): boolean =>
2-
value != undefined && value != null;
1+
const isSerializableHeaderValue = (value: any): boolean => value != null;

0 commit comments

Comments
 (0)