From 51053c5920274a70dc2e6ea11360f4b20caacafb Mon Sep 17 00:00:00 2001 From: Xabier Eizmendi Date: Fri, 2 Oct 2020 10:57:52 +0200 Subject: [PATCH] Fix linting issues --- http/static.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)