summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-02 00:42:59 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-02 00:42:59 -0700
commit09d6b1df9f9517ba382e996f877e1ce6c988d992 (patch)
treeb8388bdb1119074b755e3efe31fd7103156e03c3 /system/db/content.go
parentc92042d86c5d4f67ce2304c30c60273f767eb4c0 (diff)
testing fix for -1 case in count length
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/system/db/content.go b/system/db/content.go
index a7fbc30..7337f0f 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -250,10 +250,6 @@ func Query(namespace string, opts QueryOptions) [][]byte {
break
}
- if i >= opts.Count {
- break
- }
-
posts = append(posts, v)
i++
cur++
@@ -270,10 +266,6 @@ func Query(namespace string, opts QueryOptions) [][]byte {
break
}
- if i >= opts.Count {
- break
- }
-
posts = append(posts, v)
i++
cur++