lint some stuff

This commit is contained in:
Henrique Dias
2016-06-07 16:27:42 +01:00
parent 8ed78288a7
commit acc4c92b15
3 changed files with 14 additions and 9 deletions

View File

@@ -32,7 +32,8 @@ func ServeHTTP(w http.ResponseWriter, r *http.Request, code int, err error) (int
"Defined": variables.Defined,
}
tpl, err := templates.Get(r, functions, "error")
var tpl *template.Template
tpl, err = templates.Get(r, functions, "error")
if err != nil {
return http.StatusInternalServerError, err