Skip to content

Commit

Permalink
Fix error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtricht committed Nov 29, 2016
1 parent aca302e commit cf0aa61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/controller/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// AddGet renders the form to add a trello board.
func AddGet(w http.ResponseWriter, r *http.Request) {
err = templates.ExecuteTemplate(w, "add", nil)
err := templates.ExecuteTemplate(w, "add", nil)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/controller/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func Index(w http.ResponseWriter, r *http.Request) {
defer db.Close()
boards := []backend.Board{}
db.Order("date_start desc").Find(&boards)
err = templates.ExecuteTemplate(w, "index", boards)
err := templates.ExecuteTemplate(w, "index", boards)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
Expand Down

0 comments on commit cf0aa61

Please sign in to comment.