Skip to content

Commit

Permalink
We don't need another equals in the value
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusor committed Feb 1, 2020
1 parent 0235fb7 commit e26ae64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,8 @@ func (c *ComparativeString) Parse(query string) error {
// String returns this ComparativeString instance in the form of the query
// parameter that it came in on
func (c ComparativeString) String() string {
if c.Operator == "" {
c.Operator = ""
}
return fmt.Sprintf("%s%s", c.Operator, c.Str)
}

0 comments on commit e26ae64

Please sign in to comment.