Mercurial > gemma
diff pkg/controllers/surveys.go @ 5601:1222b777f51f
Made golint finally happy.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 06 Aug 2022 02:09:57 +0200 |
parents | 0011f50cf216 |
children |
line wrap: on
line diff
--- a/pkg/controllers/surveys.go Sat Aug 06 00:46:21 2022 +0200 +++ b/pkg/controllers/surveys.go Sat Aug 06 02:09:57 2022 +0200 @@ -27,7 +27,7 @@ ) const ( - listSurveysByIdSQL = ` + listSurveysByIDSQL = ` SELECT DISTINCT s.bottleneck_id, s.date_info::text, @@ -47,11 +47,11 @@ func listSurveys(req *http.Request) (jr mw.JSONResult, err error) { - bottleneckId := mux.Vars(req)["id"] + bottleneckID := mux.Vars(req)["id"] var rows *sql.Rows - rows, err = mw.JSONConn(req).QueryContext(req.Context(), listSurveysByIdSQL, bottleneckId) + rows, err = mw.JSONConn(req).QueryContext(req.Context(), listSurveysByIDSQL, bottleneckID) if err != nil { return }