summaryrefslogtreecommitdiff
path: root/system/db/init.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-16 12:46:34 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-16 12:46:34 -0800
commitb67aa10ca519107ae43520aa46b45601549a7332 (patch)
tree470a41fac21f9d08d2329b15728ddf22364009a7 /system/db/init.go
parent957926591fd8fc2adacf04f410e5127dec259c85 (diff)
minor optimization in db Updates, added gzip responses for API requests, added better CORS control
Diffstat (limited to 'system/db/init.go')
-rw-r--r--system/db/init.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/db/init.go b/system/db/init.go
index 0e640b1..9125d3b 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -92,6 +92,9 @@ func SystemInitComplete() bool {
err := store.View(func(tx *bolt.Tx) error {
users := tx.Bucket([]byte("__users"))
+ if users == nil {
+ return bolt.ErrBucketNotFound
+ }
err := users.ForEach(func(k, v []byte) error {
complete = true