Fix intendation

This commit is contained in:
Hannes 2018-05-13 13:00:48 +02:00
parent 9c1f495782
commit e2c2e5c3ed
No known key found for this signature in database
GPG Key ID: 0DEE6AD1C8EDBD87
1 changed files with 5 additions and 4 deletions

View File

@ -63,11 +63,12 @@ class StickerFileManager(message: JsonObject, file_base: String) : DocumentFileM
private val filenameBase: String
get() {
val stickerSet = sticker["stickerset"].obj
val stickerSet = sticker["stickerset"].obj
val set = stickerSet.get("shortName").nullString
?: stickerSet.get("id").nullString
?: stickerSet.get("_constructor").nullString
?: error("could not get a good name from: ${sticker["stickerset"]}")
?: stickerSet.get("id").nullString
?: stickerSet.get("_constructor").nullString
?: error("could not get a good name from: ${sticker["stickerset"]}")
val hash = sticker["alt"].string.hashCode()
return "${set}_${hash}"
}