Skip to content

Commit

Permalink
Fixed failing CDNResourceHandlerIT by incorrect IDE auto-refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Jun 16, 2024
1 parent 2cfb64f commit 12e8910
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,12 @@ public CDNResourceHandler(ResourceHandler wrapped) {
*/
@Override
public Resource decorateResource(Resource resource, String resourceName, String libraryName) {
if (disabledParam != null && parseBoolean(String.valueOf(evaluateExpressionGet(disabledParam)))) {
return resource;
if (disabledParam != null) {
var disabled = evaluateExpressionGet(disabledParam);

if (parseBoolean(String.valueOf(disabled))) {
return resource;
}
}

String requestPath = null;
Expand Down

0 comments on commit 12e8910

Please sign in to comment.