Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed Jun 13, 2024
1 parent 412f5bd commit 9ad1e4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/pubsub/query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ type Condition struct {
// invalid.
func New(s string) (*Query, error) {
p := &QueryParser{Buffer: fmt.Sprintf(`"%s"`, s)}
p.Init()
err := p.Init()
if err != nil {
return nil, err
}

if err := p.Parse(); err != nil {
return nil, err
}

return &Query{str: s, parser: p}, nil
}

Expand Down

0 comments on commit 9ad1e4a

Please sign in to comment.