Skip to content

Commit 8d5b3e9

Browse files
authored
Remove err param from Polka .listen() callback (#1550)
1 parent bf77940 commit 8d5b3e9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/adapter-node/src/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ import * as app from './app.js';
44

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

7-
const instance = createServer({ render: app.render }).listen(PORT, HOST, (err) => {
8-
if (err) {
9-
console.log('error', err);
10-
} else {
11-
console.log(`Listening on port ${PORT}`);
12-
}
7+
const instance = createServer({ render: app.render }).listen(PORT, HOST, () => {
8+
console.log(`Listening on port ${PORT}`);
139
});
1410

1511
export { instance };

0 commit comments

Comments
 (0)