refactor(komga): remove unnecessary null checks

This commit is contained in:
Gauthier Roebroeck 2024-01-22 16:12:15 +08:00
parent 864dba607c
commit 98f20cbcd6

View File

@ -103,7 +103,7 @@ class EpubMetadataProvider(
val language = opf.selectFirst("metadata > dc|language")?.text()?.ifBlank { null }
val genres =
opf.select("metadata > dc|subject")
.mapNotNull { it?.text()?.trim()?.ifBlank { null } }
.mapNotNull { it.text().trim().ifBlank { null } }
.toSet()
.ifEmpty { null }