Mercurial > gemma
comparison pkg/controllers/report.go @ 5711:2dd155cc95ec revive-cleanup
Fix all revive issue (w/o machine generated stuff).
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 20 Feb 2024 22:22:57 +0100 |
parents | 847de131893a |
children |
comparison
equal
deleted
inserted
replaced
5710:37c8feeecb4d | 5711:2dd155cc95ec |
---|---|
30 | 30 |
31 "github.com/gorilla/mux" | 31 "github.com/gorilla/mux" |
32 "github.com/xuri/excelize/v2" | 32 "github.com/xuri/excelize/v2" |
33 ) | 33 ) |
34 | 34 |
35 func listReports(req *http.Request) (jr mw.JSONResult, err error) { | 35 func listReports(*http.Request) (jr mw.JSONResult, err error) { |
36 path := config.ReportPath() | 36 path := config.ReportPath() |
37 if path == "" { | 37 if path == "" { |
38 err = mw.JSONError{ | 38 err = mw.JSONError{ |
39 Code: http.StatusNotFound, | 39 Code: http.StatusNotFound, |
40 Message: http.StatusText(http.StatusNotFound), | 40 Message: http.StatusText(http.StatusNotFound), |