Skip to content

Commit

Permalink
Make lint success
Browse files Browse the repository at this point in the history
  • Loading branch information
yongseongkim committed Mar 24, 2024
1 parent 7cc28f4 commit 926e327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ class AccessibilityApplicationService(
)
}

@Suppress("ThrowsCount")
internal fun doRegisterPlaceAccessibility(
createPlaceAccessibilityParams: PlaceAccessibilityRepository.CreateParams,
createPlaceAccessibilityCommentParams: PlaceAccessibilityCommentRepository.CreateParams?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@ interface PlaceAccessibilityRepository : EntityRepository<PlaceAccessibility, St
) {
fun isValid(): Boolean {
// 0401 버전에서 추가된 항목이 모두 있거나 모두 없거나
if (floors == null && isStairOnlyOption == null && stairHeightLevel == null && entranceDoorTypes == null) {
return true
}
if (floors != null && isStairOnlyOption != null && stairHeightLevel != null && entranceDoorTypes != null) {
return true
}
return false
return listOf(floors, isStairOnlyOption, stairHeightLevel, entranceDoorTypes).all { it == null }
|| listOf(floors, isStairOnlyOption, stairHeightLevel, entranceDoorTypes).all { it != null }
}
}
}

0 comments on commit 926e327

Please sign in to comment.