Skip to content

Commit

Permalink
remove redundant return value
Browse files Browse the repository at this point in the history
  • Loading branch information
ChAoSUnItY committed Jul 15, 2022
1 parent 297e109 commit c83c7f4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/main/java/chaos/unity/nenggao/FileReportBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,17 +340,10 @@ public boolean containsReport() {
return reports.isEmpty();
}

private boolean writeColor(final @NotNull PrintStream printStream, @Nullable Attribute... attributes) {
boolean printed = false;

for (Attribute attr : attributes) {
if (attr != null && enableColor) {
private void writeColor(final @NotNull PrintStream printStream, @Nullable Attribute... attributes) {
for (Attribute attr : attributes)
if (attr != null && enableColor)
printStream.append(Ansi.generateCode(attr));
printed = true;
}
}

return printed;
}

private boolean writeColor(final @NotNull PrintStream printStream, @Nullable AnsiFormat format) {
Expand Down

0 comments on commit c83c7f4

Please sign in to comment.