Cleanup some code

This commit is contained in:
Jobobby04
2020-08-05 22:46:04 -04:00
parent fbe4f6ad62
commit 61094edeed
3 changed files with 10 additions and 5 deletions
@@ -11,8 +11,7 @@ import uy.kohesive.injekt.api.get
fun Manga.isLewd(): Boolean {
val sourceName = Injekt.get<SourceManager>().getOrStub(source).name
val currentTags =
genre?.split(",")?.map { it.trim().toLowerCase(Locale.US) } ?: emptyList()
val currentTags = getGenres() ?: emptyList()
if (source == EH_SOURCE_ID || source == EXH_SOURCE_ID || source == NHENTAI_SOURCE_ID) {
return !currentTags.any { tag -> isNonHentaiTag(tag) }