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