Skip to content

Commit

Permalink
fix: Use cache with SyncedCachedEnforcer
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmassie committed Nov 22, 2024
1 parent 8dd4940 commit 21adcac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void enableCache(boolean enable) {
* @return The result of the enforcement check.
*/
public boolean enforce(Object... rvals) {
if (enableCache.get()) {
if (!enableCache.get()) {
return super.enforce(rvals);
}

Expand Down

0 comments on commit 21adcac

Please sign in to comment.