Skip to content

Commit

Permalink
chore: ktlint, detekt check
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsooplus committed Jan 25, 2024
1 parent eaedf5b commit 4102354
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,4 @@ abstract class RepositoryModule {
abstract fun bindVoteRepository(
voteRepositoryImpl: VoteRepositoryImpl,
): VoteRepository

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ object ApiServiceModule {
@Provides
fun providesStatisticsService(retrofit: Retrofit): StatisticsService {
return retrofit.create(StatisticsService::class.java)
}

@Singleton
@Provides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fun MyStatisticsResponse.toModel() = MyStatistics(
mostSpentMonth = mostSpentMonth,
recentSpent = recentSpent.map { it.toModel() },
recentMaximumSpent = recentSpent.maxOfOrNull { it.value } ?: 0,
recentTotalSpent = recentSpent.sumOf { it.value }
recentTotalSpent = recentSpent.sumOf { it.value },
)

fun StatisticsElement.toModel() = com.susu.core.model.StatisticsElement(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.susu.core.ui.base.UiState

enum class StatisticsTab(@StringRes val stringId: Int) {
MY(R.string.statistics_tab_my),
AVERAGE(R.string.statistics_tab_average)
AVERAGE(R.string.statistics_tab_average),
}

data class StatisticsState(
Expand Down

0 comments on commit 4102354

Please sign in to comment.