Skip to content

Commit 1373622

Browse files
committed
fix: remove extra console.log
1 parent 9bb2585 commit 1373622

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/moomoo/Game.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ export default class Game {
220220
}
221221
clientClose(socket: WebSocket) {
222222
let client = this.clients.filter((e) => e.socket == socket)?.[0];
223-
/*
224-
Good error handling practices are to log "OOPS" in console
225-
*/
226-
if (!client) return console.log("OOPS");
223+
if (!client) return;
227224
if (client.player) {
228225
const index = this.state.players.indexOf(client.player);
229226

0 commit comments

Comments
 (0)