Skip to content

Commit 0eb4c29

Browse files
committed
Hotfix: remove unnecessary async decorator
1 parent d739c60 commit 0eb4c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class StaticServer {
2222
* @param {string} publishDir
2323
*/
2424
constructor(publishDir) {
25-
this.instance = http.createServer(async function (req, res) {
25+
this.instance = http.createServer(function (req, res) {
2626
const ext = path.extname(req.url)
2727
const filepath = ext === HTML_EXT ? path.join(basePath, req.url) : path.join(basePath, publishDir, req.url)
2828

0 commit comments

Comments
 (0)