Skip to content

Commit dae429b

Browse files
committed
fix: Remove unnecessary condition
1 parent ac15709 commit dae429b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/sse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class SSEServerTransport implements Transport {
103103
throw new Error("Unsupported rawBody type. rawBody must be one of 'Buffer' or 'string'");
104104
}
105105
} else {
106-
body = rawBody ?? await getRawBody(req, {
106+
body = await getRawBody(req, {
107107
limit: MAXIMUM_MESSAGE_SIZE,
108108
encoding: ct.parameters.charset ?? "utf-8",
109109
});

0 commit comments

Comments
 (0)