Skip to content

Commit

Permalink
Remove unnecessary null check before method call (flowable#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbmalkovsky authored Nov 2, 2021
1 parent 3b8e2f5 commit 5c5f6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void execute(CommandContext commandContext, PlanItemInstanceEntity planIt
tenantId(planItemInstanceEntity.getTenantId());

String fallBackToDefaultTenantValue = getFieldString(STRING_DECISION_TABLE_FALLBACK_TO_DEFAULT_TENANT);
if (fallBackToDefaultTenantValue != null && Boolean.parseBoolean(fallBackToDefaultTenantValue)) {
if (Boolean.parseBoolean(fallBackToDefaultTenantValue)) {
executeDecisionBuilder.fallbackToDefaultTenant();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Comment execute(CommandContext commandContext) {
processDefinitionId = task.getProcessDefinitionId();
}

if (processDefinitionId != null && Flowable5Util.isFlowable5ProcessDefinitionId(commandContext, processDefinitionId)) {
if (Flowable5Util.isFlowable5ProcessDefinitionId(commandContext, processDefinitionId)) {
Flowable5CompatibilityHandler compatibilityHandler = Flowable5Util.getFlowable5CompatibilityHandler();
return compatibilityHandler.addComment(taskId, processInstanceId, type, message);
}
Expand Down

0 comments on commit 5c5f6fe

Please sign in to comment.