ReaderFront: Remove unsupported function usage (#12497)

This commit is contained in:
AntsyLich 2022-07-09 19:16:47 +06:00 committed by GitHub
parent b09a89e22c
commit 64d3ab1371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class ReaderFrontGenerator : ThemeSourceGenerator {
override val themeClass = "ReaderFront"
override val baseVersionCode = 5
override val baseVersionCode = 6
override val sources = listOf(
MultiLang("Ravens Scans", "https://ravens-scans.com", listOf("es", "en"), true),

View File

@ -4,7 +4,7 @@ sealed class ReaderFrontI18N(val id: Int) {
protected abstract val genres: Map<String, String>
operator fun get(name: NameWrapper) =
name.toString().let { genres.getOrDefault(it, it) }
name.toString().let { genres[it] ?: it }
object SPANISH : ReaderFrontI18N(1) {
override val genres = mapOf(