mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-19 19:21:32 +02:00
Small speed up with contains of a char and not a string
This commit is contained in:
@@ -417,7 +417,7 @@ object LocalCache : ILocalCache {
|
||||
private fun isValidHex(key: String): Boolean {
|
||||
if (key.isBlank()) return false
|
||||
if (key.length != 64) return false
|
||||
if (key.contains(":")) return false
|
||||
if (key.contains(':')) return false
|
||||
|
||||
return Hex.isHex(key)
|
||||
}
|
||||
|
Reference in New Issue
Block a user