Assign error in catch block for clarity

This commit is contained in:
Ivan Zuzak
2015-09-21 12:54:50 +02:00
parent 255d3a438a
commit d79855993b

View File

@@ -70,7 +70,7 @@ module.exports =
try
error = null
symlinkCommandWithPrivilegeSync(commandPath, destinationPath)
catch error
undefined
catch err
error = err
callback?(error)