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:
@@ -79,6 +79,9 @@ func (qf *queryFilter) UnmarshalText(input []byte) error {
|
||||
}
|
||||
meta = &filter.Meta{ReverseDirection: true}
|
||||
reverse, err := filter.Parse("", input, filter.GlobalStore("meta", meta))
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot parse reverse filter: %s", filter.HumanError(err))
|
||||
}
|
||||
*qf = queryFilter{
|
||||
Filter: direct.(string),
|
||||
ReverseFilter: reverse.(string),
|
||||
|
||||
Reference in New Issue
Block a user