From 9b9178a87b8eea508453097ef2ef50b4148c41fb Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 3 Sep 2020 15:47:34 +0200 Subject: [PATCH] [Minor] Code cleanup --- .../execution/command/BasePlanningAndExecutionCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/BasePlanningAndExecutionCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/BasePlanningAndExecutionCommand.java index 84416d61a..c880d5724 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/BasePlanningAndExecutionCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/BasePlanningAndExecutionCommand.java @@ -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) {