Mercurial > gemma
diff pkg/controllers/importqueue.go @ 5712:6270951dda28 revive-cleanup
/interface{}/any/
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 20 Feb 2024 22:37:51 +0100 |
parents | ceecc205011c |
children | 5a0fbdda6e2d |
line wrap: on
line diff
--- a/pkg/controllers/importqueue.go Tue Feb 20 22:22:57 2024 +0100 +++ b/pkg/controllers/importqueue.go Tue Feb 20 22:37:51 2024 +0100 @@ -110,10 +110,10 @@ type filledStmt struct { stmt strings.Builder - args []interface{} + args []any } -func buildFilters(projection string, req *http.Request, args ...interface{}) ( +func buildFilters(projection string, req *http.Request, args ...any) ( *filledStmt, *filledStmt, *filledStmt, @@ -124,7 +124,7 @@ var noBefore, noAfter bool - cond := func(format string, args ...interface{}) { + cond := func(format string, args ...any) { term := &filterTerm{format: format, args: args} l = append(l, term) a = append(a, term) @@ -560,7 +560,7 @@ } enqueued = enqueued.UTC() - var sum interface{} + var sum any if summary.Valid { if err = json.NewDecoder( strings.NewReader(summary.String)).Decode(&sum); err != nil { @@ -595,7 +595,7 @@ jr = mw.JSONResult{ Result: struct { Enqueued models.ImportTime `json:"enqueued"` - Summary interface{} `json:"summary,omitempty"` + Summary any `json:"summary,omitempty"` Entries []*models.ImportLogEntry `json:"entries"` }{ Enqueued: models.ImportTime{Time: enqueued},