mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use fsUtils.readObject to load snippets file
This commit is contained in:
@@ -65,13 +65,7 @@ module.exports =
|
||||
console.warn "Error reading snippets file '#{filepath}': #{err.stack ? err}"
|
||||
|
||||
try
|
||||
readObject =
|
||||
if CSON.isObjectPath(filepath)
|
||||
CSON.readFile.bind(CSON)
|
||||
else
|
||||
fsUtils.readPlistAsync.bind(fsUtils)
|
||||
|
||||
readObject filepath, (err, object) =>
|
||||
fsUtils.readObject filepath, (err, object) =>
|
||||
try
|
||||
if err
|
||||
logError(err)
|
||||
|
||||
Reference in New Issue
Block a user