Skip to content

Commit 9f10c3d

Browse files
committed
refactor: use async API
1 parent 590f955 commit 9f10c3d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/Server.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,13 +427,7 @@ class Server {
427427
);
428428
}
429429

430-
fakeCert = await fs.readFile(certificatePath, (error, data) => {
431-
if (error) {
432-
this.logger.error(error);
433-
process.exit(2);
434-
}
435-
return data;
436-
});
430+
fakeCert = fs.readFile(certificatePath);
437431

438432
this.logger.info(`SSL certificate: ${certificatePath}`);
439433
}

0 commit comments

Comments
 (0)