Skip to content

Commit

Permalink
Make single issue a little smaller (avoid NLs)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Sep 17, 2024
1 parent 8ef5670 commit adb1143
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,15 @@ protected void reportSingleCheckSummary(SingleCheckResults singleCheckResults) {
printer.accept(String.format("Results for %s", singleCheckResults.getWhatIsChecked()));
printer.accept(String.format("%d %s checked,",
singleCheckResults.getNrOfItemsChecked(), singleCheckResults.getSourceItemName()));
printer.accept(String.format("%d %s found.%n",
printer.accept(String.format("%d %s found.",
singleCheckResults.getNrOfIssues(), singleCheckResults.getTargetItemName()));
printer.accept(String.format("%s", singleCheckResults.getGeneralRemark()));
printOptional(singleCheckResults.getGeneralRemark());
}

private void printOptional(String optional) {
if (null != optional && !optional.equals("")) {
printer.accept(optional);
}
}

@Override
Expand Down

0 comments on commit adb1143

Please sign in to comment.