Skip to content

Commit

Permalink
just check predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Sep 27, 2024
1 parent 40e415e commit 0cfc3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (p ParsedExpression) RootGroups() []*Node {
}

func (p ParsedExpression) Valid() bool {
if p.Root.Predicate == nil && p.Root.GroupID.String() == "" {
if p.Root.Predicate == nil {
return false
}
// TODO: support this in the future
Expand Down

0 comments on commit 0cfc3d3

Please sign in to comment.