mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Detekt
This commit is contained in:
parent
efd4308474
commit
8562018917
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue