mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Fix null guard in StateStore
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user