Skip to content

Commit

Permalink
dumb adobe elvis operator issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Mar 5, 2024
1 parent 5a23d68 commit 717eaa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions system/cache/store/indexers/MetadataIndexer.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ component accessors="true" {
* @objectKey The key to get
*/
struct function getObjectMetadata( required objectKey ){
return variables.poolMetadata.get( arguments.objectKey ) ?: {};
var results = variables.poolMetadata.get( arguments.objectKey );
return isNull( results ) ? {} : results;
}

/**
Expand Down Expand Up @@ -175,8 +176,8 @@ component accessors="true" {
* Get an array of sorted keys for this indexer according to parameters
*
* @objectKey
* @property
* @value
* @property
* @value
*/
array function getSortedKeys(
required property,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
objectDefaultTimeout : 60,
objectDefaultLastAccessTimeout : 30,
useLastAccessTimeouts : true,
reapFrequency : 2,
reapFrequency : 10,
freeMemoryPercentageThreshold : 0,
evictionPolicy : "LRU",
evictCount : 1,
Expand Down

0 comments on commit 717eaa3

Please sign in to comment.