Skip to content

Commit d05bc9b

Browse files
committed
♻️ 코드 리뷰 피드백 반영하여 수정
1 parent 6488047 commit d05bc9b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

presentation/src/main/java/com/whyranoid/presentation/community/runningpost/CreateRunningPostFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ internal class CreateRunningPostFragment :
8383
}
8484
}
8585

86-
private fun handleCreatePostStateSuccess(result: Boolean) {
87-
if (result) {
86+
private fun handleCreatePostStateSuccess(isSuccess: Boolean) {
87+
if (isSuccess) {
8888
val action =
8989
CreateRunningPostFragmentDirections.actionCreateRunningPostFragmentToCommunityFragment()
9090

presentation/src/main/java/com/whyranoid/presentation/myrun/CalendarDayBinder.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ class CalendarDayBinder(
7171
}
7272

7373
runningDays.forEach { runningDay ->
74-
val runningDayYear = runningDay[0].toInt()
75-
val runningDayMonth = runningDay[1].toInt()
76-
val runningDayDay = runningDay[2].toInt()
74+
val (runningDayYear, runningDayMonth, runningDayDay) = runningDay.map { it.toInt() }
7775

7876
if (runningDayYear == day.date.year && runningDayMonth == day.date.monthValue && runningDayDay == day.day) {
7977
container.binding.root.background =

0 commit comments

Comments
 (0)