mirror of
https://github.com/gotson/komga.git
synced 2025-01-09 04:08:00 +08:00
refactor(komga): remove unnecessary null checks
This commit is contained in:
parent
864dba607c
commit
98f20cbcd6
@ -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 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user