Use method name store rather than storeAsync

This commit is contained in:
Katrina Uychaco
2016-01-28 14:03:10 -07:00
parent 29deb61d4e
commit dff4aa8e84
2 changed files with 2 additions and 2 deletions

View File

@@ -793,7 +793,7 @@ class AtomEnvironment extends Model
if synchronous
@getStorageFolder().storeSync(storageKey, state)
else
@getStorageFolder().storeAsync(storageKey, state)
@getStorageFolder().store(storageKey, state)
else
@getCurrentWindow().loadSettings.windowState = JSON.stringify(state)

View File

@@ -11,7 +11,7 @@ class StorageFolder
fs.writeFileSync(@pathForKey(name), JSON.stringify(object), 'utf8')
storeAsync: (name, object) ->
store: (name, object) ->
return unless @path?
fs.writeFile(@pathForKey(name), JSON.stringify(object), 'utf8')