summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-12 00:00:00 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-12 00:00:00 -0800
commit0b084a9e94d16ed71ab05efa4596473ed6e256d8 (patch)
treee1c166b30d26b67a38ff8dcb4f4165e196c79eea /system/db/content.go
parent9a982d8ab53203577f8ec1ce4d0ab51dffac16fa (diff)
handling error
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 f4671de..5ddf0a7 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -436,7 +436,7 @@ func SortContent(namespace string) {
err := store.Update(func(tx *bolt.Tx) error {
bname := []byte(namespace + "__sorted")
err := tx.DeleteBucket(bname)
- if err != nil {
+ if err != nil || err != bolt.ErrBucketNotFound {
return err
}