Fix capitalization of constructors

Enforce new-cap rule and fix capitalization and mistakes related to
constructors.
This commit is contained in:
Hornwitser committed 2020-10-23 21:22:45 +02:00
1 parent 00a1f6aea7
commit 8586dfb95f
10 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -1751,7 +1751,7 @@ async function startServer() {
// Only start listening for connections after all plugins have loaded
if (httpPort) {
httpServer = require("http").Server(app);
httpServer = new (require("http").Server)(app);
await listen(httpServer, httpPort);
console.log("Listening for HTTP on port %s...", httpServer.address().port);
}