Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Sep 11, 2024
1 parent 8cf9f1b commit 273e04b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/xrpc-server/tests/bodies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ describe('Bodies', () => {
server.method(
'io.example.validationTest',
(ctx: { params: xrpcServer.Params; input?: xrpcServer.HandlerInput }) => {
if (ctx.input?.body instanceof Readable)
if (ctx.input?.body instanceof Readable) {
throw new Error('Input is readable')
}

return {
encoding: 'json',
body: ctx.input?.body ?? null,
Expand Down

0 comments on commit 273e04b

Please sign in to comment.