Skip to content

Commit

Permalink
Fix searching next available schedule
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Surzhykov <yuriisurzhykov@gmail.com>
  • Loading branch information
yuriisurzhykov committed Jun 6, 2024
1 parent f2c537f commit f2ca37c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release_feature_github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ jobs:
style: Code Style
revert: Reverts
default-commit-type: Other Changes
release-name: v1.0.0
release-name-prefix: ""
mention-authors: true
mention-new-contributors: true
include-compare-link: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ interface BuildCurrentLocationStatusUseCase {
if (currentIndex == currentDate.dayOfWeek.value - 1) {
val containsSchedule =
schedule[currentIndex].scheduleList.find { it.startTime.isAfter(currentTime) }
return if (containsSchedule != null) {
Pair(schedule[currentIndex].dayName, containsSchedule)
if (containsSchedule != null) {
return Pair(schedule[currentIndex].dayName, containsSchedule)
} else {
if (firstLoopRun) {
firstLoopRun = false
continue
} else {
return null
}
Expand Down

0 comments on commit f2ca37c

Please sign in to comment.