Rename Empty -> IsEmpty in Room

pull/13/head
KurnakovMaksim 2021-12-16 11:17:52 +09:00
parent 42547f8907
commit 2f81a20221
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public class LeaveRoomRequestHandler : IRequestHandler<LeaveRoomRequest, Room>
var requestConnectionId = request.ConnectionId; var requestConnectionId = request.ConnectionId;
room.RemoveUser(requestConnectionId); room.RemoveUser(requestConnectionId);
if (room.Empty()) if (room.IsEmpty())
{ {
_dbContext.Rooms.Remove(room); _dbContext.Rooms.Remove(room);
} }

View File

@ -51,7 +51,7 @@ public class Room
} }
} }
public bool Empty() public bool IsEmpty()
{ {
return Users.Count == 0; return Users.Count == 0;
} }