Remove some unused declarations
This commit is contained in:
parent
62f00c6af9
commit
339936c5ee
|
@ -118,7 +118,7 @@ if (useTLS) {
|
||||||
httpsServer.listen(tlsPort, host, () =>
|
httpsServer.listen(tlsPort, host, () =>
|
||||||
console.log(`Listening on https://${host}:${tlsPort}`)
|
console.log(`Listening on https://${host}:${tlsPort}`)
|
||||||
);
|
);
|
||||||
const server = http
|
http
|
||||||
.createServer((req, res) => {
|
.createServer((req, res) => {
|
||||||
res.writeHead(301, {
|
res.writeHead(301, {
|
||||||
Location: "https://" + req.headers["host"] + req.url,
|
Location: "https://" + req.headers["host"] + req.url,
|
||||||
|
@ -130,7 +130,7 @@ if (useTLS) {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
addWebsocket(app, undefined);
|
addWebsocket(app, undefined);
|
||||||
const server = app.listen(port, host, () =>
|
app.listen(port, host, () =>
|
||||||
console.log(`Listening on http://${host}:${port}`)
|
console.log(`Listening on http://${host}:${port}`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue