summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-12 12:35:38 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-12 12:35:38 -0800
commitbb77182ca41c420c3fcbf9f0754e604e336bead6 (patch)
tree2cf9eda63f963eb476706a80a8aaf3fec0033470 /system/db/content.go
parent4ced69bd3c4c0e2e0c59b2890fe1647875680727 (diff)
and not or in err check
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go
index cec29fd..b8d9cb8 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -449,7 +449,7 @@ func SortContent(namespace string) {
err := store.Update(func(tx *bolt.Tx) error {
bname := []byte(namespace + "__sorted")
err := tx.DeleteBucket(bname)
- if err != nil || err != bolt.ErrBucketNotFound {
+ if err != nil && err != bolt.ErrBucketNotFound {
fmt.Println("Error in DeleteBucket")
return err
}