DepictedItem.kt: corrected property name format and catch format to for ktlint standard

This commit is contained in:
tristan81 2024-09-18 21:18:41 +10:00
parent 94a007ca63
commit c6dd524307

View file

@ -101,8 +101,8 @@ private fun getImageUrl(
.substringAfter(":") .substringAfter(":")
.replace(" ", "_") .replace(" ", "_")
.let { .let {
val MD5Hash = getMd5(it) val md5Hash = getMd5(it)
"https://upload.wikimedia.org/wikipedia/commons/thumb/${MD5Hash[0]}/${MD5Hash[0]}${MD5Hash[1]}/$it/$size-$it" "https://upload.wikimedia.org/wikipedia/commons/thumb/${md5Hash[0]}/${md5Hash[0]}${md5Hash[1]}/$it/$size-$it"
} }
/** /**
@ -126,7 +126,6 @@ private fun getMd5(input: String): String =
hashtext = "0$hashtext" hashtext = "0$hashtext"
} }
hashtext hashtext
} // For specifying wrong message digest algorithms } catch (e: NoSuchAlgorithmException) {
catch (e: NoSuchAlgorithmException) {
throw RuntimeException(e) throw RuntimeException(e)
} }