From 756fa3b52a11c41e644637a47e7e823f05ec552d Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sat, 9 Dec 2023 13:30:31 -0500 Subject: [PATCH] Remove some stray error checking in days 7 and 8 --- day6/main.go | 4 ---- day8/main.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/day6/main.go b/day6/main.go index 8df9262..10c1c03 100644 --- a/day6/main.go +++ b/day6/main.go @@ -35,10 +35,6 @@ func main() { } input := strings.TrimSpace(string(inputBytes)) - if err != nil { - panic(fmt.Sprintf("failed to parse input: %s", err)) - } - inputLines := strings.Split(input, "\n") races, err := parseRaces(inputLines) if err != nil { diff --git a/day8/main.go b/day8/main.go index 15838b0..cfaf699 100644 --- a/day8/main.go +++ b/day8/main.go @@ -54,10 +54,6 @@ func main() { } input := strings.TrimSpace(string(inputBytes)) - if err != nil { - panic(fmt.Sprintf("failed to parse input: %s", err)) - } - inputLines := strings.Split(input, "\n") if len(inputLines) < 3 { panic("not enough data in input to parse")