Skip to content

Commit

Permalink
Unit test case fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Jaron committed Sep 7, 2021
1 parent bb0ad2f commit e4f8c5b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ private static void apply(final int[] widths, final Iterable<String> series) {

public static int[] compute(final ITableSource source) {
final int[] widths = new int[source.getColumnsCount()];
apply(widths, source.getHeaders());
if (source.hasHeaders()) {
apply(widths, source.getHeaders());
}
for (final Iterable<String> row : source) {
apply(widths, row);
}
Expand Down

0 comments on commit e4f8c5b

Please sign in to comment.