[Minor] Code cleanup
This commit is contained in:
parent
e2b525c045
commit
9b9178a87b
|
@ -51,9 +51,9 @@ public abstract class BasePlanningAndExecutionCommand extends Command {
|
|||
|
||||
protected ConfirmationPolicy getConfirmationPolicy(Action action) {
|
||||
Resource resource = getResource(action);
|
||||
PolicyDef executionPolicyDef = resource.getPolicyDefs()
|
||||
PolicyDef policyDef = resource.getPolicyDefs()
|
||||
.getPolicyDef(ConfirmationPolicy.class.getSimpleName(), DEFAULT_CONFIRMATION);
|
||||
return getComponent(PolicyHandler.class).getPolicy(executionPolicyDef, tx());
|
||||
return getComponent(PolicyHandler.class).getPolicy(policyDef, tx());
|
||||
}
|
||||
|
||||
protected PlanningPolicy getPlanningPolicy(Action action) {
|
||||
|
|
Loading…
Reference in New Issue