Fix null guard in StateStore

This commit is contained in:
Nathan Sobo
2016-08-11 14:31:08 -06:00
parent 2fe5027b57
commit b5b3577d7c

View File

@@ -26,7 +26,7 @@ class StateStore {
save (key, value) {
return new Promise((resolve, reject) => {
this.dbPromise.then(db => {
if (db == null) resolve()
if (db == null) return resolve()
var request = db.transaction(['states'], 'readwrite')
.objectStore('states')