mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: fix some small issues detected by golangci-lint
But not using it as some linters are either plain incorrect (the one suggesting to not use nil for `c.t.Context()`) or just debatable (checking for err value is a good practice, but there are good reasons to opt out in some cases).
This commit is contained in:
@@ -120,11 +120,6 @@ func templateEscape(input string) string {
|
||||
return strings.ReplaceAll(input, `{{`, `{{"{{"}}`)
|
||||
}
|
||||
|
||||
// templateDate turns a date into an UTC string compatible with ClickHouse.
|
||||
func templateDate(input time.Time) string {
|
||||
return input.UTC().Format("2006-01-02 15:04:05")
|
||||
}
|
||||
|
||||
// templateWhere transforms a filter to a WHERE clause
|
||||
func templateWhere(qf queryFilter) string {
|
||||
if qf.Filter == "" {
|
||||
|
||||
Reference in New Issue
Block a user