Skip to content

Commit a61a1b0

Browse files
committed
format update with prettier
1 parent 7df1936 commit a61a1b0

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

server/src/index.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -268,18 +268,21 @@ app.get("/stdio", async (req, res) => {
268268
const stderrHandler = (chunk: Buffer) => {
269269
// Only send if the transport exists in our map (meaning it's still active)
270270
if (webAppTransports.has(webAppTransport.sessionId)) {
271-
webAppTransport.send({
272-
jsonrpc: "2.0",
273-
method: "notifications/stderr",
274-
params: {
275-
content: chunk.toString(),
276-
},
277-
})
278-
.catch((error: any) => {
279-
console.error(`Error sending stderr data to client: ${error.message}`);
280-
// If we hit an error sending, clean up the transport
281-
webAppTransports.delete(webAppTransport.sessionId);
282-
});
271+
webAppTransport
272+
.send({
273+
jsonrpc: "2.0",
274+
method: "notifications/stderr",
275+
params: {
276+
content: chunk.toString(),
277+
},
278+
})
279+
.catch((error: any) => {
280+
console.error(
281+
`Error sending stderr data to client: ${error.message}`,
282+
);
283+
// If we hit an error sending, clean up the transport
284+
webAppTransports.delete(webAppTransport.sessionId);
285+
});
283286
}
284287
};
285288

0 commit comments

Comments
 (0)