Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Wenjun Ruan <[email protected]>
  • Loading branch information
llllkid and ruanwenjun authored Dec 27, 2024
1 parent 63e9ed4 commit d335f78
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2133,11 +2133,9 @@ protected void doBatchOperateWorkflowDefinition(User loginUser,
"Switch task params: " + taskParams + " is invalid.");
}
SwitchParameters.SwitchResult switchResult = switchParameters.getSwitchResult();
List<SwitchResultVo> dependTaskList = switchResult.getDependTaskList();
dependTaskList.forEach(switchResultVo -> {
switchResult.getDependTaskList().forEach(switchResultVo -> {
switchResultVo.setNextNode(taskCodeMap.get(switchResultVo.getNextNode()));
});
switchResult.setDependTaskList(dependTaskList);
if (switchResult.getNextNode() != null) {
switchResult.setNextNode(
taskCodeMap.get(switchResult.getNextNode()));
Expand Down

0 comments on commit d335f78

Please sign in to comment.