diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-07-18 18:30:53 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-09 23:28:27 +0200 |
commit | e536fb2f72e4883979b451b60b12c44f5f94313c (patch) | |
tree | 9c7fccb12c5aeec560d3c223a3b6e969e8d95cd9 /webrtc | |
parent | Update User.ts (diff) | |
download | server-e536fb2f72e4883979b451b60b12c44f5f94313c.tar.xz |
replace all var with let (reduces warnings)
Diffstat (limited to 'webrtc')
-rw-r--r-- | webrtc/src/Server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webrtc/src/Server.ts b/webrtc/src/Server.ts index 6591691c..3199b9c1 100644 --- a/webrtc/src/Server.ts +++ b/webrtc/src/Server.ts @@ -2,7 +2,7 @@ import { Server as WebSocketServer } from "ws"; import { Config, db } from "@fosscord/util"; import mediasoup from "mediasoup"; -var port = Number(process.env.PORT); +let port = Number(process.env.PORT); if (isNaN(port)) port = 3004; export class Server { |