Skip to content

Commit d05dadc

Browse files
committed
Avoid null coercion to undefined (#446)
1 parent c672695 commit d05dadc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/restate-sdk-core/src/serde_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class JsonSerde<T> implements Serde<T | undefined> {
2525
contentType = "application/json";
2626

2727
serialize(value: T): Uint8Array {
28-
if (value == undefined) {
28+
if (value === undefined) {
2929
return new Uint8Array(0);
3030
}
3131
return new TextEncoder().encode(JSON.stringify(value));

0 commit comments

Comments
 (0)