Update Downloader.kt

closed the outputStream and edited a comment
This commit is contained in:
Shamicen 2022-08-18 12:06:22 +02:00 committed by GitHub
parent df2b73f7bb
commit fc620a3759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,7 +506,7 @@ class Downloader(
}
/**
* Data type for details.json
* Data class for details.json
*/
@Serializable
data class Details(
@ -549,6 +549,7 @@ class Downloader(
)
}
outputStream?.write(json.encodeToString(detailsData).toByteArray())
outputStream?.close()
} catch (e: Exception) {
logcat(LogPriority.ERROR, e) { "Error creating details.json for ${manga.title}" }
}