mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Use method name store rather than storeAsync
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user