diff --git a/http/static.go b/http/static.go index 0bc1facc..bf0bafbd 100644 --- a/http/static.go +++ b/http/static.go @@ -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)