gabrywu commented on a change in pull request #1910: Adapting partial code(file
name start with A) to the sonar cloud rules
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/1910#discussion_r376752427
##########
File path:
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/AbstractShell.java
##########
@@ -281,7 +283,7 @@ public void run() {
//Process has not terminated.
//So check if it has completed
//if not just destroy it.
- if (p != null && !shell.completed.get()) {
+ if (!shell.completed.get()) {
shell.setTimedOut();
Review comment:
process vaiable will be assigned before ShellTimeoutTimerTask, so no need to
check
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services