From: Andrew Chilton Date: Mon, 5 May 2008 11:53:12 +0000 (+1200) Subject: Say 'no issues' when that is the case X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=901bc199fd6905688b0869a64aede5e4de3c498e;p=cil.git Say 'no issues' when that is the case --- diff --git a/bin/cil b/bin/cil index 4ef1f89..bdd7c55 100755 --- a/bin/cil +++ b/bin/cil @@ -146,11 +146,16 @@ sub list { # find all the issues my $issues = get_all_issues(); - separator(); - foreach my $issue ( @$issues ) { - display_issue_short($issue); + if ( @$issues ) { + separator(); + foreach my $issue ( @$issues ) { + display_issue_short($issue); + } + separator(); + } + else { + msg('no issues found'); } - separator(); } sub summary {