mirror of
https://github.com/gotson/komga.git
synced 2025-12-15 04:53:44 +01:00
refactor(komga): remove unnecessary null checks
This commit is contained in:
parent
864dba607c
commit
98f20cbcd6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue