Skip to content

Commit 19f80d8

Browse files
committed
fix(filter): Not expression string representation
1 parent 03532e9 commit 19f80d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/filter/ql/expr.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ type NotExpr struct {
8181
// String returns a string representation of the not expression.
8282
func (e *NotExpr) String() string {
8383
var b strings.Builder
84-
b.Grow(len(e.Expr.String()) + 2)
85-
b.WriteRune('(')
84+
b.Grow(len(e.Expr.String()) + 4)
85+
b.WriteString("NOT ")
8686
b.WriteString(e.Expr.String())
87-
b.WriteRune(')')
8887
return b.String()
8988
}

0 commit comments

Comments
 (0)