Skip to content

Commit

Permalink
Merge pull request #216 from oposs/show-uncategorized
Browse files Browse the repository at this point in the history
Show uncategorized filter group output too
  • Loading branch information
zaucker authored Oct 12, 2020
2 parents a645f05 + bdaaf3b commit 718c50c
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 718c50c

Please sign in to comment.