Skip to content

Commit

Permalink
Apply cfformat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano authored and github-actions[bot] committed Feb 2, 2024
1 parent 268d394 commit 63c8554
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions system/ioc/scopes/Singleton.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ component accessors="true" {
/**
* These are keys we use internally in ColdBox, so we don't want to clear them when doing clearAppOnly() calls
*/
variables.RESERVED_KEYS = [ "@coldbox", "interceptor-", "cbscheduler", "@coreDelegates", "@cbdelegates" ];
variables.RESERVED_KEYS = [
"@coldbox",
"interceptor-",
"cbscheduler",
"@coreDelegates",
"@cbdelegates"
];

/**
* Configure the scope for operation and returns itself
Expand Down Expand Up @@ -143,9 +149,9 @@ component accessors="true" {
*/
function clearAppOnly(){
var keys = variables.singletons.keySet().toArray();
for( var key in keys ){
for ( var key in keys ) {
// They key must NOT match any pattern in our reserved keys, so we can clear it
if( !inReservedKeys( key ) ){
if ( !inReservedKeys( key ) ) {
variables.singletons.remove( key );
}
}
Expand Down

0 comments on commit 63c8554

Please sign in to comment.