Fix linting issues

This commit is contained in:
Xabier Eizmendi 2020-10-02 10:57:52 +02:00
parent 5085baa655
commit 51053c5920

View File

@ -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)