mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-13 16:20:08 +01:00
Detekt
This commit is contained in:
parent
efd4308474
commit
8562018917
@ -16,6 +16,7 @@ data class LibrarySort(
|
|||||||
val isAscending: Boolean
|
val isAscending: Boolean
|
||||||
get() = direction == Direction.Ascending
|
get() = direction == Direction.Ascending
|
||||||
|
|
||||||
|
@Suppress("MagicNumber")
|
||||||
sealed class Type(
|
sealed class Type(
|
||||||
override val flag: Long,
|
override val flag: Long,
|
||||||
) : FlagWithMask {
|
) : FlagWithMask {
|
||||||
@ -92,6 +93,7 @@ data class LibrarySort(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("CyclomaticComplexMethod")
|
||||||
fun deserialize(serialized: String): LibrarySort {
|
fun deserialize(serialized: String): LibrarySort {
|
||||||
if (serialized.isEmpty()) return default
|
if (serialized.isEmpty()) return default
|
||||||
return try {
|
return try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user