mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
REPO-3029/MNT-13055: code cleanup - refactor if statement
Entire method body was in an if statement. This is a small change to return early with inverted logic condition.
This commit is contained in:
@@ -124,8 +124,11 @@ public class ExecuteAllRulesActionExecuter extends ActionExecuterAbstractBase
|
||||
|
||||
private void executeImpl(final Action ruleAction, NodeRef actionedUponNodeRef, List<Rule> parentRules)
|
||||
{
|
||||
if (this.nodeService.exists(actionedUponNodeRef) == true)
|
||||
if (!this.nodeService.exists(actionedUponNodeRef))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the parameter value
|
||||
boolean includeInherited = false;
|
||||
Boolean includeInheritedValue = (Boolean)ruleAction.getParameterValue(PARAM_EXECUTE_INHERITED_RULES);
|
||||
@@ -204,7 +207,6 @@ public class ExecuteAllRulesActionExecuter extends ActionExecuterAbstractBase
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.repo.action.ParameterizedItemAbstractBase#addParameterDefinitions(java.util.List)
|
||||
|
Reference in New Issue
Block a user