Skip to content

Commit

Permalink
Remove err param from Polka .listen() callback (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjon authored May 25, 2021
1 parent bf77940 commit 8d5b3e9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/adapter-node/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ import * as app from './app.js';

const { HOST = '0.0.0.0', PORT = 3000 } = process.env;

const instance = createServer({ render: app.render }).listen(PORT, HOST, (err) => {
if (err) {
console.log('error', err);
} else {
console.log(`Listening on port ${PORT}`);
}
const instance = createServer({ render: app.render }).listen(PORT, HOST, () => {
console.log(`Listening on port ${PORT}`);
});

export { instance };

0 comments on commit 8d5b3e9

Please sign in to comment.