replace all var with let (reduces warnings)

This commit is contained in:
TheArcaneBrony
2022-07-18 18:30:53 +02:00
parent afb82deb94
commit e536fb2f72
60 changed files with 133 additions and 133 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ const WebSocket = require("ws");
const endpoint = process.env.GATEWAY || "ws://localhost:3001";
const connections = Number(process.env.CONNECTIONS) || 50;
const token = process.env.TOKEN;
var cores = 1;
let cores = 1;
try {
cores = Number(process.env.THREADS) || os.cpus().length;
} catch {
@@ -12,7 +12,7 @@ try {
}
if (!token) {
console.error("TOKEN env var missing");
console.error("TOKEN env let missing");
process.exit();
}