~chrono/boiler

4d6342b11f7c0b7dd693f1930d56501690848036 — Chrono 1 year, 4 months ago 24cb248
remove if statements (#30)

1 files changed, 3 insertions(+), 9 deletions(-)

M src/server.ts
M src/server.ts => src/server.ts +3 -9
@@ 157,19 157,13 @@ wss.on(
			console.log(`${username} has left the server.`);

			// Remove the user's socket, if it exists
			if (user.socket) {
				user.socket = null;
			}
			user.socket = null;

			// Remove the user's token, if it exists
			if (user.token) {
				user.token = null;
			}
			user.token = null;

			// Remove the user handshake complete variable
			if (user.handshakeComplete == true) {
				user.handshakeComplete = false;
			}
			user.handshakeComplete = false;
		});
	}
);