handle files with no statements
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d91030d5ea
commit
05819824b2
1 changed files with 5 additions and 0 deletions
|
@ -135,6 +135,11 @@ namespace BunyMuny {
|
||||||
Console.WriteLine(statement);
|
Console.WriteLine(statement);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (statements.Count == 0) {
|
||||||
|
Console.WriteLine("No statements found.");
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
Console.WriteLine("Summary:");
|
Console.WriteLine("Summary:");
|
||||||
Console.WriteLine("==================");
|
Console.WriteLine("==================");
|
||||||
var summaries = statements.GroupBy(s => s.Category). // group statements by category
|
var summaries = statements.GroupBy(s => s.Category). // group statements by category
|
||||||
|
|
Loading…
Reference in a new issue