Fix emptiness assertion

v2
Nikita Tokarchuk 6 years ago
parent a86455df2d
commit ea72b26e1d
  1. 2
      mongox/query/query.go

@ -83,7 +83,7 @@ func (q *Query) Preloader() (empty bool, preloader []string) {
// Empty checks the query for any content
func (q *Query) Empty() bool {
qv := reflect.ValueOf(q)
qv := reflect.ValueOf(q.m)
keys := qv.MapKeys()
return len(keys) == 0

Loading…
Cancel
Save