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:
parent
6e31583d01
commit
2d7ba7f489
|
@ -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}`)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue