Skip to content

Commit

Permalink
shadowing is evil
Browse files Browse the repository at this point in the history
  • Loading branch information
Alextopher committed Dec 22, 2023
1 parent 9c4229e commit 5919519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
}

// open the quotes file
quoteFile, err := os.OpenFile("quotes.txt", os.O_RDWR|os.O_APPEND|os.O_CREATE, 0644)
quoteFile, err = os.OpenFile("quotes.txt", os.O_RDWR|os.O_APPEND|os.O_CREATE, 0644)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 5919519

Please sign in to comment.