Fixing let/const in Admin

This commit is contained in:
David Négrier 2021-01-18 15:31:19 +01:00
parent 217b04dafa
commit 8fcc1534d8

View File

@ -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);