mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Assign error in catch block for clarity
This commit is contained in:
@@ -70,7 +70,7 @@ module.exports =
|
||||
try
|
||||
error = null
|
||||
symlinkCommandWithPrivilegeSync(commandPath, destinationPath)
|
||||
catch error
|
||||
undefined
|
||||
catch err
|
||||
error = err
|
||||
|
||||
callback?(error)
|
||||
|
||||
Reference in New Issue
Block a user