From 13966fbf442ccb56e75a580a3d235af8dc4e094a Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:09:18 +0100 Subject: [PATCH] fix --- lib/services/fetch_sources_list.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/services/fetch_sources_list.dart b/lib/services/fetch_sources_list.dart index 6a9f34e..0ac5088 100644 --- a/lib/services/fetch_sources_list.dart +++ b/lib/services/fetch_sources_list.dart @@ -26,12 +26,7 @@ Future fetchSourcesList( for (var source in sourceList) { if (source.appMinVerReq != null) { if (compareVersions(info.version, source.appMinVerReq!) > -1) { - final itm = source.isManga == null - ? source.itemType - : source.isManga! - ? ItemType.manga - : ItemType.anime; - if (itm == itemType) { + if (source.itemType == itemType) { if (id != null) { if (id == source.id) { final sourc = isar.sources.getSync(id)!;