diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/workflow/end-task.post.js b/config/alfresco/templates/webscripts/org/alfresco/repository/workflow/end-task.post.js index ccbb4af46e..d2d57c35c4 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/workflow/end-task.post.js +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/workflow/end-task.post.js @@ -2,7 +2,7 @@ function main() { // Task ID var taskId = url.templateArgs.taskId; - if ((taskId === undefined) || (taskId.length == 0)) + if (taskId === undefined) { status.setCode(status.STATUS_BAD_REQUEST, "TaskID missing when ending task."); return; @@ -20,7 +20,7 @@ function main() // Optional Transition ID var transitionId = url.templateArgs.transitionId; - if ((transitionId === undefined) || (transitionId.length == 0)) + if (transitionId === undefined) { transitionId = null; }