Skip to content

Commit

Permalink
Little clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuckame committed Nov 7, 2020
1 parent fb1892f commit b486be4
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@ private Mono<Void> printChanges(final Map<Path, List<LineChange>> changes) {
;
}

private ConsoleHelper.ConsoleStyle[] getChangeColor(final LineChange change) {
private ConsoleHelper.ConsoleStyle getChangeColor(final LineChange change) {
switch (change.getDiff()) {
case ERROR:
return new ConsoleHelper.ConsoleStyle[]{ConsoleHelper.ForegroundColorEnum.RED};
return ConsoleHelper.ForegroundColorEnum.RED;
case CHANGE_VALUE:
return new ConsoleHelper.ConsoleStyle[]{ConsoleHelper.ForegroundColorEnum.LIGHT_BLUE};
return ConsoleHelper.ForegroundColorEnum.LIGHT_BLUE;
case TO_DISABLE:
return new ConsoleHelper.ConsoleStyle[]{ConsoleHelper.ForegroundColorEnum.LIGHT_YELLOW};
return ConsoleHelper.ForegroundColorEnum.LIGHT_YELLOW;
case TO_ENABLE:
return new ConsoleHelper.ConsoleStyle[]{ConsoleHelper.ForegroundColorEnum.LIGHT_CYAN};
return ConsoleHelper.ForegroundColorEnum.LIGHT_CYAN;
case TO_ENABLE_AND_CHANGE_VALUE:
return new ConsoleHelper.ConsoleStyle[]{ConsoleHelper.ForegroundColorEnum.LIGHT_MAGENTA};
return ConsoleHelper.ForegroundColorEnum.LIGHT_MAGENTA;
case DO_NOTHING:
default:
return new ConsoleHelper.ConsoleStyle[]{ConsoleHelper.ForegroundColorEnum.DARK_GRAY};
return ConsoleHelper.ForegroundColorEnum.DARK_GRAY;
}
}

Expand Down

0 comments on commit b486be4

Please sign in to comment.