Fix linting issues
This commit is contained in:
parent
5085baa655
commit
51053c5920
@ -82,9 +82,8 @@ func handleWithStaticData(w http.ResponseWriter, _ *http.Request, d *data, box *
|
||||
if err != nil {
|
||||
if err == os.ErrNotExist {
|
||||
return http.StatusNotFound, err
|
||||
} else {
|
||||
return http.StatusInternalServerError, err
|
||||
}
|
||||
return http.StatusInternalServerError, err
|
||||
}
|
||||
index := template.Must(template.New("index").Delims("[{[", "]}]").Parse(fileContents))
|
||||
err = index.Execute(w, data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user