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