mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(source/local): Don't use double-bang
This commit is contained in:
parent
2299aaac63
commit
c1cb7a2066
1 changed files with 3 additions and 2 deletions
|
@ -286,8 +286,9 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
|
||||||
if (!directory.exists()) return
|
if (!directory.exists()) return
|
||||||
|
|
||||||
lang?.let { langMap[manga.url] = it }
|
lang?.let { langMap[manga.url] = it }
|
||||||
val file = directory.createFile(COMIC_INFO_FILE)!!
|
directory.createFile(COMIC_INFO_FILE)?.let { file ->
|
||||||
file.writeText(xml.encodeToString(ComicInfo.serializer(), manga.toComicInfo(lang = lang)))
|
file.writeText(xml.encodeToString(ComicInfo.serializer(), manga.toComicInfo(lang = lang)))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue