Skip to content

Commit 717eaa3

Browse files
committed
dumb adobe elvis operator issues
1 parent 5a23d68 commit 717eaa3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

system/cache/store/indexers/MetadataIndexer.cfc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ component accessors="true" {
9696
* @objectKey The key to get
9797
*/
9898
struct function getObjectMetadata( required objectKey ){
99-
return variables.poolMetadata.get( arguments.objectKey ) ?: {};
99+
var results = variables.poolMetadata.get( arguments.objectKey );
100+
return isNull( results ) ? {} : results;
100101
}
101102

102103
/**
@@ -175,8 +176,8 @@ component accessors="true" {
175176
* Get an array of sorted keys for this indexer according to parameters
176177
*
177178
* @objectKey
178-
* @property
179-
* @value
179+
* @property
180+
* @value
180181
*/
181182
array function getSortedKeys(
182183
required property,

tests/specs/cache/providers/CacheBoxWithConcurrentStoreTest.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
objectDefaultTimeout : 60,
99
objectDefaultLastAccessTimeout : 30,
1010
useLastAccessTimeouts : true,
11-
reapFrequency : 2,
11+
reapFrequency : 10,
1212
freeMemoryPercentageThreshold : 0,
1313
evictionPolicy : "LRU",
1414
evictCount : 1,

0 commit comments

Comments
 (0)