Skip to content

Commit

Permalink
- fix sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
nqminhuit committed Apr 10, 2022
1 parent 5b21ade commit eaa30d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/nqm/vertx/CommandVerticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void safelyPrint(Process pr) {
var sb = new StringBuilder(infof("%s", "" + path.getFileName()));
try {
while (isNotBlank(line = input.readLine())) {
sb.append(commandWithArgs[1].equals("status") ? gitStatus(line) : "\n %s".formatted(line));
sb.append(commandWithArgs[1].equals("status") ? gitStatus(line) : "%n %s".formatted(line));
}
out.println(sb.toString());
Optional.of(pr.waitFor())
Expand Down
5 changes: 1 addition & 4 deletions src/main/java/org/nqm/vertx/GisVertx.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ private static void addNewModule(Message<Object> msg) {
}

private static void processedModule(Message<Object> msg) {
var module = "" + msg.body();
var modules = processedModules();
if (modules.get(module) != null) {
modules.put(module, true);
}
modules.computeIfPresent("" + msg.body(), (k, v) -> true);
if (!modules.isEmpty() && modules.values().stream().allMatch(Boolean.TRUE::equals)) {
System.exit(0);
}
Expand Down

0 comments on commit eaa30d1

Please sign in to comment.