Compare commits

..

2 commits

Author SHA1 Message Date
05819824b2
handle files with no statements
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-27 15:57:28 +10:00
d91030d5ea
indentation 2020-09-27 15:55:50 +10:00
2 changed files with 13 additions and 8 deletions

View file

@ -135,6 +135,11 @@ namespace BunyMuny {
Console.WriteLine(statement);
}
if (statements.Count == 0) {
Console.WriteLine("No statements found.");
return 2;
}
Console.WriteLine("Summary:");
Console.WriteLine("==================");
var summaries = statements.GroupBy(s => s.Category). // group statements by category