[Minor] Code cleanup

This commit is contained in:
Robert von Burg 2020-09-03 15:47:34 +02:00
parent e2b525c045
commit 9b9178a87b
1 changed files with 2 additions and 2 deletions

View File

@ -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) {