Skip to content

Commit 7d2fe89

Browse files
committed
fix: remove unnecessary return statement in health check route
1 parent 1aead7c commit 7d2fe89

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/router/health.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ router.get('/health', async (ctx) => {
1717
}
1818
ctx.body = 'ERROR: no views found in database'
1919
ctx.status = 500
20-
return
2120
})
2221
.catch(() => {
2322
ctx.body = 'ERROR: cannot connect to database'

0 commit comments

Comments
 (0)