Skip to content

Commit

Permalink
Show uncategorized filter group output too
Browse files Browse the repository at this point in the history
Only done for the text output. In response to #209.
  • Loading branch information
jnthn committed Oct 12, 2020
1 parent 4099c9c commit bdaaf3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Agrammon/OutputFormatter/Text.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sub render-filters(@module-lines, Agrammon::Outputs::FilterGroupCollection $coll
my %filters := .key;
my $value := .value;
my @filters = %filters.map: { .key ~ '=' ~ .value };
for @filters.kv -> $idx, $filter-id {
for (@filters || '(Uncategorized)').kv -> $idx, $filter-id {
my $padding = ' ' x $longest-filter - $filter-id.chars;
push @module-lines, $idx == 0
?? "$prefix * $filter-id$padding $value $unit"
Expand Down

0 comments on commit bdaaf3b

Please sign in to comment.