Whitespace tweaks
This commit is contained in:
parent
ecf50e4249
commit
1f835e044f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue