Fix emptiness assertion

This commit is contained in:
Nikita Tokarchuk
2019-05-16 13:56:37 +02:00
parent a86455df2d
commit ea72b26e1d
+1 -1
View File
@@ -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