Skip to content
Snippets Groups Projects
Commit dda3d6c8 authored by jkrvivian's avatar jkrvivian
Browse files

Fix: wrong error check after opening db

parent a996497e
Branches
Tags
No related merge requests found
......@@ -36,7 +36,7 @@ func GetBadgerInstance() (result *badger.DB, err error) {
opts.TableLoadingMode = options.MemoryMap
db, badgerErr := badger.Open(opts)
if err != nil {
if badgerErr != nil {
err = badgerErr
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment