Commit 2d7ba7f4 authored by Anton Egorov's avatar Anton Egorov Committed by Tim Neutkens

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.
parent 6e31583d
...@@ -33,8 +33,7 @@ app.prepare() ...@@ -33,8 +33,7 @@ app.prepare()
}) })
server.use(router.routes()) server.use(router.routes())
server.listen(port, (err) => { server.listen(port, () => {
if (err) throw err
console.log(`> Ready on http://localhost:${port}`) console.log(`> Ready on http://localhost:${port}`)
}) })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment