mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 23:52:33 +02:00
Use .get( instead of index to keep to code base coding style
This commit is contained in:
@@ -67,7 +67,7 @@ class LargeCache<K, V> : CacheOperations<K, V> {
|
|||||||
key: K,
|
key: K,
|
||||||
builder: (key: K) -> V,
|
builder: (key: K) -> V,
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val value = cache[key]
|
val value = cache.get(key)
|
||||||
return if (value != null) {
|
return if (value != null) {
|
||||||
false
|
false
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user