From b5b3577d7ce2394c173adbfb955397dbf5218bc6 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 11 Aug 2016 14:31:08 -0600 Subject: [PATCH] Fix null guard in StateStore --- src/state-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state-store.js b/src/state-store.js index a2d3b476b..1a5892f3c 100644 --- a/src/state-store.js +++ b/src/state-store.js @@ -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')