Skip to content

Commit

Permalink
fix: Update .gitignore to ignore .aider* files
Browse files Browse the repository at this point in the history
feat: Improve error handling in main.go
  • Loading branch information
arunsathiya committed Aug 22, 2024
1 parent 67b2b48 commit f53df6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
go.work

# Misc
.DS_Store
.DS_Store
.aider*
6 changes: 3 additions & 3 deletions src/2022/day04/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ func main() {
defer input.Close()
pairs, err := parseInput(input)
if err != nil {
log.Fatalf(err.Error())
log.Fatal(err)
}
fullyContained, err := Day04Of2022PartA(pairs)
if err != nil {
log.Fatalf(err.Error())
log.Fatal(err)
}
partiallyContained, err := Day04Of2022PartB(pairs)
if err != nil {
log.Fatalf(err.Error())
log.Fatal(err)
}
fmt.Println(fullyContained)
fmt.Println(partiallyContained)
Expand Down

0 comments on commit f53df6f

Please sign in to comment.