1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Remove error handling from custom-server-koa's server example (#3982)

Koa's `listeningListener` callback is invoked with no arguments according to the Koa's type definitions, hence error handling is extraneous.
This commit is contained in:
Anton Egorov 2018-03-10 14:22:40 +03:00 committed by Tim Neutkens
parent 6e31583d01
commit 2d7ba7f489

View file

@ -33,8 +33,7 @@ app.prepare()
})
server.use(router.routes())
server.listen(port, (err) => {
if (err) throw err
server.listen(port, () => {
console.log(`> Ready on http://localhost:${port}`)
})
})