Skip to content

Commit

Permalink
Remove inaccurate code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
acaloiaro committed Sep 19, 2023
1 parent b6ef254 commit 5260761
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func helloWorld(w http.ResponseWriter, r *http.Request) {
}

tmpl := template.Must(template.ParseFiles("partials/helloworld.html"))
var buff = bytes.NewBufferString("")
buff := bytes.NewBufferString("")
err := tmpl.Execute(buff, map[string]string{"Name": name})
if err != nil {
ise(err, w)
Expand All @@ -82,7 +82,6 @@ func helloWorld(w http.ResponseWriter, r *http.Request) {
// It responds with a simple greeting HTML partial
func helloWorldForm(w http.ResponseWriter, r *http.Request) {
name := "World"
// The name is not in the query param, let's see if it was submitted as a form
if err := r.ParseForm(); err != nil {
ise(err, w)
return
Expand Down

0 comments on commit 5260761

Please sign in to comment.