update ktlint plugin to 11.3.1, format code (#3442)

This commit is contained in:
Konrad Pozniak 2023-03-13 13:16:39 +01:00 committed by GitHub
commit d839f18267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
141 changed files with 589 additions and 428 deletions

View file

@ -72,7 +72,7 @@ fun Poll?.toViewData(): PollViewData? {
votesCount = votesCount,
votersCount = votersCount,
options = options.mapIndexed { index, option -> option.toViewData(ownVotes?.contains(index) == true) },
voted = voted,
voted = voted
)
}

View file

@ -43,7 +43,7 @@ sealed class StatusViewData {
* @return Whether the post is collapsed or fully expanded.
*/
val isCollapsed: Boolean,
val isDetailed: Boolean = false,
val isDetailed: Boolean = false
) : StatusViewData() {
override val id: String
get() = status.id

View file

@ -25,7 +25,7 @@ sealed class TrendingViewData {
data class Header(
val start: Date,
val end: Date,
val end: Date
) : TrendingViewData() {
override val id: String
get() = start.toString() + end.toString()