Remove some unused declarations

This commit is contained in:
Radon Rosborough 2021-08-26 18:36:21 -07:00
parent 62f00c6af9
commit 339936c5ee
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ if (useTLS) {
httpsServer.listen(tlsPort, host, () =>
console.log(`Listening on https://${host}:${tlsPort}`)
);
const server = http
http
.createServer((req, res) => {
res.writeHead(301, {
Location: "https://" + req.headers["host"] + req.url,
@ -130,7 +130,7 @@ if (useTLS) {
);
} else {
addWebsocket(app, undefined);
const server = app.listen(port, host, () =>
app.listen(port, host, () =>
console.log(`Listening on http://${host}:${port}`)
);
}