mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
🎨
This commit is contained in:
@@ -696,9 +696,7 @@ class Config
|
||||
fn(args...)
|
||||
result = callback()
|
||||
new Promise (resolve, reject) =>
|
||||
result
|
||||
.then(endTransaction(resolve))
|
||||
.catch(endTransaction(reject))
|
||||
result.then(endTransaction(resolve)).catch(endTransaction(reject))
|
||||
catch error
|
||||
@endTransaction()
|
||||
Promise.reject(error)
|
||||
|
||||
Reference in New Issue
Block a user