mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
fix a compiler smart cast complain
This commit is contained in:
parent
36b773ae43
commit
2762352dfe
1 changed files with 6 additions and 4 deletions
|
|
@ -112,10 +112,12 @@ class UserController(
|
|||
restrictions =
|
||||
ContentRestrictions(
|
||||
ageRestriction =
|
||||
if (ageRestriction == null || ageRestriction.restriction == AllowExcludeDto.NONE)
|
||||
null
|
||||
else
|
||||
AgeRestriction(ageRestriction.age, ageRestriction.restriction.toDomain()),
|
||||
ageRestriction.let {
|
||||
if (it == null || it.restriction == AllowExcludeDto.NONE)
|
||||
null
|
||||
else
|
||||
AgeRestriction(it.age, it.restriction.toDomain())
|
||||
},
|
||||
labelsAllow = labelsAllow ?: emptySet(),
|
||||
labelsExclude = labelsExclude ?: emptySet(),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue