This commit is contained in:
Maddie Witman 2024-07-13 20:22:34 -04:00
parent efd4308474
commit 8562018917

View file

@ -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 {