From 8562018917a186677244d505af4d334c541e09e6 Mon Sep 17 00:00:00 2001 From: Maddie Witman Date: Sat, 13 Jul 2024 20:22:34 -0400 Subject: [PATCH] Detekt --- .../main/java/tachiyomi/domain/library/model/LibrarySortMode.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/domain/src/main/java/tachiyomi/domain/library/model/LibrarySortMode.kt b/domain/src/main/java/tachiyomi/domain/library/model/LibrarySortMode.kt index 165bc98d8..5f61a81de 100644 --- a/domain/src/main/java/tachiyomi/domain/library/model/LibrarySortMode.kt +++ b/domain/src/main/java/tachiyomi/domain/library/model/LibrarySortMode.kt @@ -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 {