upgrade ktlint plugin to 12.0.3 (#4169)
There are some new rules, I think they mostly make sense, except for the max line length which I had to disable because we are over it in a lot of places. --------- Co-authored-by: Goooler <wangzongler@gmail.com>
This commit is contained in:
parent
33cd6fdb98
commit
5192fb08a5
215 changed files with 2813 additions and 1177 deletions
|
|
@ -53,11 +53,7 @@ data class StatusDisplayOptions(
|
|||
/**
|
||||
* @return a new StatusDisplayOptions adapted to whichever preference changed.
|
||||
*/
|
||||
fun make(
|
||||
preferences: SharedPreferences,
|
||||
key: String,
|
||||
account: AccountEntity
|
||||
) = when (key) {
|
||||
fun make(preferences: SharedPreferences, key: String, account: AccountEntity) = when (key) {
|
||||
PrefKeys.ANIMATE_GIF_AVATARS -> copy(
|
||||
animateAvatars = preferences.getBoolean(key, false)
|
||||
)
|
||||
|
|
@ -91,7 +87,9 @@ data class StatusDisplayOptions(
|
|||
PrefKeys.ALWAYS_OPEN_SPOILER -> copy(
|
||||
openSpoiler = account.alwaysOpenSpoiler
|
||||
)
|
||||
else -> { this }
|
||||
else -> {
|
||||
this
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue