From 9b129789e9e2f5a404bb3f6b72933848ec6656b8 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Sat, 21 Aug 2021 05:05:01 +0430 Subject: [PATCH] all forms of Default are illegal --- .../src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt index 7b5e838e..ac027c57 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt @@ -28,7 +28,7 @@ object Category { * The new category will be placed at the end of the list */ fun createCategory(name: String) { - if (name == DEFAULT_CATEGORY_NAME) return + if (name.equals(DEFAULT_CATEGORY_NAME, ignoreCase = true)) return transaction { val count = CategoryTable.selectAll().count()