Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Knoedlseder committed Dec 4, 2024
1 parent f593531 commit 4c3d789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/main/java/de/uni_passau/fim/se2/pipeline_helper/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ public Integer call() throws Exception {
System.out.println("Successfully produced a checker result.");
}
catch (Exception e) {
result = new CheckerResult("Error", false,
"The pipeline tool crashed. Please contact your instructor to resolve the issue.");
result = new CheckerResult(
"Error", false,
"The pipeline tool crashed. Please contact your instructor to resolve the issue."
);
}

CheckerResultWriter.writeFeedback(parent.outputDirectory, result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.charset.MalformedInputException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.*;
Expand Down Expand Up @@ -41,7 +40,8 @@ public CheckerResult check() throws CheckerException {
final SortedMap<Integer, Integer> linesWithViolations;
try {
linesWithViolations = getAllViolationsWithLength(p);
} catch (CheckerException e) {
}
catch (CheckerException e) {
return new CheckerResult(CHECKER_NAME, false, e.getMessage());
}
if (!linesWithViolations.isEmpty()) {
Expand Down

0 comments on commit 4c3d789

Please sign in to comment.