Skip to content

Commit

Permalink
Remove unnecessary instantiation of new Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BartChris committed Nov 6, 2024
1 parent 99ba6d5 commit b879e50
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,7 @@ private void saveWorkflow() {
* @return page
*/
public String newWorkflow() {
this.workflow = new Workflow();
return workflowEditPath + "&id=" + (Objects.isNull(this.workflow.getId()) ? 0 : this.workflow.getId());
return workflowEditPath + "&id=0";
}

/**
Expand Down

0 comments on commit b879e50

Please sign in to comment.