Skip to content

Commit

Permalink
removed dead warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Apr 3, 2024
1 parent 8df9d9e commit e768d92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/org/rascalmpl/repl/TerminalProgressBarMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,11 @@ public synchronized void write(int b) throws IOException {
@Override
public synchronized void endAllJobs() {
for (var pb : bars) {
if (pb.nesting > 0) {
if (pb.nesting >= 0) {
writer.println("[INFO] " + pb.name + " is still at nesting level " + pb.nesting);

Check warning on line 401 in src/org/rascalmpl/repl/TerminalProgressBarMonitor.java

View check run for this annotation

Codecov / codecov/patch

src/org/rascalmpl/repl/TerminalProgressBarMonitor.java#L401

Added line #L401 was not covered by tests
}
if (pb.current < pb.max) {
writer.println("[INFO] " + pb.name + " has not done all the work (" + pb.current + " of " + pb.max + ")");
}
}

Check warning on line 403 in src/org/rascalmpl/repl/TerminalProgressBarMonitor.java

View check run for this annotation

Codecov / codecov/patch

src/org/rascalmpl/repl/TerminalProgressBarMonitor.java#L403

Added line #L403 was not covered by tests

bars.clear();
writer.write(ANSI.showCursor());
writer.flush();
Expand Down

0 comments on commit e768d92

Please sign in to comment.