Yao-MR commented on a change in pull request #8552:
URL: https://github.com/apache/dolphinscheduler/pull/8552#discussion_r815536193
##########
File path:
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterSchedulerService.java
##########
@@ -179,10 +179,6 @@ private void scheduleProcess() throws Exception {
}
private List<ProcessInstance> command2ProcessInstance(List<Command>
commands) {
- if (CollectionUtils.isEmpty(commands)) {
- return null;
- }
-
List<ProcessInstance> processInstances = new
ArrayList<>(commands.size());
Review comment:
first we know the function is for transform the command to process
instance,
so we assue the command is not null, and also the we can know that the
function who call the command2ProcessInstance have the predicate that the
command is null or not null

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]