Skip to content

Commit

Permalink
merge: (#795) 쓸모없는 조건문 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 authored Nov 25, 2024
2 parents dac583a + 0981204 commit 71272b2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ service 종류 (깔끔한 분류를 위해 나눔)

- persistenceAdapter **:** JPA, QueryDSL을 통한 쿼리 구현
- 또는 기타 기술이나 라이브러리에 의존하는 세부 구현 내용

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ interface CheckOutingService {
outingTime: LocalTime,
arrivalTime: LocalTime
)

fun checkOutingApplicationQueryAble(): Boolean
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,4 @@ class CheckOutingServiceImpl(
existingTime.timesOverlap(outingTime, arrivalTime)
}
}

override fun checkOutingApplicationQueryAble(): Boolean {
val currentTime = LocalTime.now()

return currentTime.isBefore(LocalTime.of(20, 0))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class GetCurrentOutingApplicationUseCase(
fun execute(): GetCurrentOutingApplicationResponse {
val student = studentService.getCurrentStudent()

outingService.checkOutingApplicationQueryAble()

val currentOutingApplicationVO = outingService.getCurrentOutingApplication(student.id)

return GetCurrentOutingApplicationResponse.of(currentOutingApplicationVO, student.name)
Expand Down

0 comments on commit 71272b2

Please sign in to comment.