Merge pull request #13 from KurnakovMaksim/main

Rename Empty -> IsEmpty in Room
pull/29/head
James Montemagno 2022-01-18 13:29:28 -08:00 committed by GitHub
commit 21fe410e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
room.RemoveUser(requestConnectionId);
if (room.Empty())
if (room.IsEmpty())
{
_dbContext.Rooms.Remove(room);
}

View File

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