We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ead0d72 + 39f9cac commit c1acd7dCopy full SHA for c1acd7d
src/main/kotlin/goodspace/teaming/chat/service/RoomServiceImpl.kt
@@ -205,6 +205,6 @@ class RoomServiceImpl(
205
}
206
207
private fun RoomUpdateRequestDto.validate() {
208
- require(title.trim().isEmpty()) { ILLEGAL_TITLE }
+ require(title.trim().isNotEmpty()) { ILLEGAL_TITLE }
209
210
src/main/kotlin/goodspace/teaming/global/entity/room/Room.kt
@@ -57,7 +57,7 @@ class Room(
57
fun currentMemberCount() = userRooms.size
58
59
fun addUserRoom(userRoom: UserRoom) {
60
- require(userRooms.size <= memberCount) { throw IllegalStateException("방의 최대 인원 수를 초과했습니다.") }
+ require(userRooms.size < memberCount) { throw IllegalStateException("방의 최대 인원 수를 초과했습니다.") }
61
62
userRooms.add(userRoom)
63
0 commit comments