Skip to content

Commit 850cfe2

Browse files
committed
fix: lint
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 8030024 commit 850cfe2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/src/api/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ setImmediate(async () => {
150150

151151
app.use((err: any, req: any, res: any, next: any) => {
152152
if (err.type === 'entity.parse.failed') {
153-
return next(new BadRequestError('Invalid JSON body'))
153+
next(new BadRequestError('Invalid JSON body'))
154+
return
154155
}
155156
next(err)
156157
})

0 commit comments

Comments
 (0)