diff --git a/pkg/logql/syntax/walk_test.go b/pkg/logql/syntax/walk_test.go index 9f0a5015ed731..57cfdeb39c32b 100644 --- a/pkg/logql/syntax/walk_test.go +++ b/pkg/logql/syntax/walk_test.go @@ -79,6 +79,8 @@ func Test_AppendMatchers(t *testing.T) { switch me := e.(type) { case *MatchersExpr: me.AppendMatchers(test.matchers) + default: + // do nothing } }) require.Equal(t, test.want, expr.String())