Skip to content

Commit

Permalink
#178 [fix] it -> 명시적인 변수 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Aug 16, 2022
1 parent 0884bf6 commit e0d59a0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ class RemoteRulesTodayDataSourceImpl @Inject constructor(
}.fold(
{ response ->
return RulesTodayInfo(
response.data?.homeRuleCategories!!.map { it.toCategoryInfo() },
response.data.todayTodoRules.map { it.toRuleInfo() }
response.data?.homeRuleCategories!!.map { categoryData ->
categoryData.toCategoryInfo()
},
response.data.todayTodoRules.map { ruleData ->
ruleData.toRuleInfo()
}
)
},
{
Expand All @@ -43,7 +47,9 @@ class RemoteRulesTodayDataSourceImpl @Inject constructor(
{ response ->
return TempManagerInfo(
response.data!!.id,
response.data.homies.map { it.toHomieInfo() }
response.data.homies.map { homieData ->
homieData.toHomieInfo()
}
)
},
{
Expand Down Expand Up @@ -74,7 +80,9 @@ class RemoteRulesTodayDataSourceImpl @Inject constructor(
override suspend fun getMyToDoInfoList(roomId: String): List<RuleInfo>? {
return runCatching { rulesApi.getMyTodoInfoList(ROOM_ID) }.fold(
{ response ->
response.data?.map { it.toRuleInfo() }
response.data?.map { ruleData ->
ruleData.toRuleInfo()
}
},
{
Timber.e(it.message)
Expand All @@ -100,8 +108,12 @@ class RemoteRulesTodayDataSourceImpl @Inject constructor(
runCatching { rulesApi.getRuleTableInfoList(ROOM_ID, categoryId) }.fold(
{ response ->
return RulesTableInfo(
response.data?.keyRules!!.map { it.toRuleInfo() },
response.data.rules.map { it.toRuleInfo() }
response.data?.keyRules!!.map { ruleData ->
ruleData.toRuleInfo()
},
response.data.rules.map { ruleData ->
ruleData.toRuleInfo()
}
)
},
{
Expand Down
2 changes: 1 addition & 1 deletion domain/src/main/java/com/hous/domain/model/Manager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data class Manager(
DayDataInfo("화", State.UNSELECT),
DayDataInfo("수", State.UNSELECT),
DayDataInfo("목", State.UNSELECT),
DayDataInfo("금ø", State.UNSELECT),
DayDataInfo("", State.UNSELECT),
DayDataInfo("토", State.UNSELECT),
DayDataInfo("일", State.UNSELECT)
)
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit e0d59a0

Please sign in to comment.