summaryrefslogtreecommitdiff
path: root/system/db
diff options
context:
space:
mode:
Diffstat (limited to 'system/db')
-rw-r--r--system/db/content.go2
-rw-r--r--system/db/init.go3
2 files changed, 1 insertions, 4 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
}
diff --git a/system/db/init.go b/system/db/init.go
index 49329d3..eaf6d76 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -9,9 +9,6 @@ import (
"github.com/boltdb/bolt"
"github.com/nilslice/jwt"
-
- // initialize the system with db configuration
- _ "github.com/ponzu-cms/ponzu/system/init"
)
var store *bolt.DB