Skip to content

Commit

Permalink
Apply tiny polish to DevMojo
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jun 1, 2021
1 parent 94d7746 commit bfa2fe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ Collection<Path> pomFiles() {
}

boolean alive() {
return process == null ? false : process.isAlive();
return process != null && process.isAlive();
}

int exitValue() {
Expand Down Expand Up @@ -730,8 +730,8 @@ public void run() {
process.destroy();
try {
process.waitFor();
} catch (InterruptedException ignored) {
getLog().warn("Unable to properly wait for dev-mode end", ignored);
} catch (InterruptedException e) {
getLog().warn("Unable to properly wait for dev-mode end", e);
}
}
}, "Development Mode Shutdown Hook"));
Expand Down

0 comments on commit bfa2fe7

Please sign in to comment.