From 3c6c2d297eb99b353a66b927cace0e8c4b9f2077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <jose.carlos@menteslibres.net> Date: Fri, 19 Aug 2016 21:33:31 -0500 Subject: [PATCH] Fix Empty() method on Cond. --- db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.go b/db.go index 0ea6467b..a0c6b408 100644 --- a/db.go +++ b/db.go @@ -187,9 +187,9 @@ func (c Cond) Operator() CompoundOperator { // Empty returns false if there are no conditions. func (c Cond) Empty() bool { for range c { - return true + return false } - return false + return true } type rawValue struct { -- GitLab