We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75b95af commit a8d6474Copy full SHA for a8d6474
src/shared/stdio.ts
@@ -1,4 +1,3 @@
1
-import { ZodError } from 'zod';
2
import { JSONRPCMessage, JSONRPCMessageSchema } from '../types.js';
3
4
/**
@@ -35,7 +34,7 @@ export function deserializeMessage(line: string): JSONRPCMessage | null {
35
34
try {
36
return JSONRPCMessageSchema.parse(JSON.parse(line));
37
} catch (error: unknown) {
38
- // When non-JSON messages are received, we ignore them.
+ // When non-JSON messages are received, we simply ignore them.
39
if (error instanceof SyntaxError) {
40
return null;
41
}
0 commit comments