From 8fcc1534d8e2fcf51e99ae71521d282a59a4ab6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Mon, 18 Jan 2021 15:31:19 +0100 Subject: [PATCH] Fixing let/const in Admin --- back/src/Model/Admin.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/back/src/Model/Admin.ts b/back/src/Model/Admin.ts index 9d9c85ce..a121d105 100644 --- a/back/src/Model/Admin.ts +++ b/back/src/Model/Admin.ts @@ -22,9 +22,9 @@ export class Admin { } public sendUserJoin(uuid: string, name: string, ip: string): void { - let serverToAdminClientMessage = new ServerToAdminClientMessage(); + const serverToAdminClientMessage = new ServerToAdminClientMessage(); - let userJoinedRoomMessage = new UserJoinedRoomMessage(); + const userJoinedRoomMessage = new UserJoinedRoomMessage(); userJoinedRoomMessage.setUuid(uuid); userJoinedRoomMessage.setName(name); userJoinedRoomMessage.setIpaddress(ip); @@ -35,9 +35,9 @@ export class Admin { } public sendUserLeft(uuid: string/*, name: string, ip: string*/): void { - let serverToAdminClientMessage = new ServerToAdminClientMessage(); + const serverToAdminClientMessage = new ServerToAdminClientMessage(); - let userLeftRoomMessage = new UserLeftRoomMessage(); + const userLeftRoomMessage = new UserLeftRoomMessage(); userLeftRoomMessage.setUuid(uuid); serverToAdminClientMessage.setUserleftroom(userLeftRoomMessage);