Skip to content

Commit

Permalink
Fix edge case in runner
Browse files Browse the repository at this point in the history
pedrofgodinho committed Dec 14, 2023
1 parent da858f8 commit f4e8c0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runner.rs
Original file line number Diff line number Diff line change
@@ -130,6 +130,9 @@ fn run_day(solution: ParserFn, part: Option<i64>, input: String) -> DayResult {
}

fn print_results(results: Vec<CompleteDayResult>, totals: Totals) {
if results.len() == 0 {
return;
}
let totals = if results.len() > 1 {
vec![[
"Total".to_owned(),

0 comments on commit f4e8c0f

Please sign in to comment.