Skip to content

Commit a03c748

Browse files
author
User
committed
fix: remove trailing whitespace in send() method
1 parent 5bfe860 commit a03c748

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/server/src/server/stdio.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ export class StdioServerTransport implements Transport {
9999
send(message: JSONRPCMessage): Promise<void> {
100100
return new Promise((resolve, reject) => {
101101
const json = serializeMessage(message);
102-
102+
103103
// Handle write errors (e.g., EPIPE when client disconnects)
104104
const onError = (error: Error) => {
105105
this._stdout.off('error', onError);
106106
reject(error);
107107
};
108-
108+
109109
this._stdout.once('error', onError);
110-
110+
111111
if (this._stdout.write(json)) {
112112
this._stdout.off('error', onError);
113113
resolve();

0 commit comments

Comments
 (0)