mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
Lint (#423)
This commit is contained in:
@@ -327,8 +327,9 @@ class LocalSource : CatalogueSource {
|
||||
|
||||
fun getFormat(chapter: SChapter): Format {
|
||||
val chapFile = File(applicationDirs.localMangaRoot, chapter.url)
|
||||
if (chapFile.exists())
|
||||
if (chapFile.exists()) {
|
||||
return getFormat(chapFile)
|
||||
}
|
||||
|
||||
throw Exception("Chapter not found")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user