Whitespace tweaks

This commit is contained in:
Justin Spahr-Summers 2024-12-09 13:43:17 +00:00 • committed by GitHub
commit 1f835e044f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,7 +94,7 @@ export class SSEServerTransport implements Transport {
}
try {
await this.handleMessage(typeof body === 'string'? JSON.parse(body): body);
await this.handleMessage(typeof body === 'string' ? JSON.parse(body) : body);
} catch {
res.writeHead(400).end(`Invalid message: ${body}`);
return;