mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Removing unnecessary assignment
This commit is contained in:
parent
93e4eeafed
commit
cc98e99070
1 changed files with 1 additions and 2 deletions
|
@ -1892,11 +1892,10 @@ exports.Try = class Try extends Base
|
|||
# is optional, the *catch* is not.
|
||||
compileNode: (o) ->
|
||||
o.indent += TAB
|
||||
scope = o.scope
|
||||
tryPart = @attempt.compileToFragments o, LEVEL_TOP
|
||||
|
||||
catchPart = if @recovery
|
||||
generatedErrorVariableName = scope.freeVariable 'error'
|
||||
generatedErrorVariableName = o.scope.freeVariable 'error'
|
||||
placeholder = new Literal generatedErrorVariableName
|
||||
@recovery.unshift new Assign @errorVariable, placeholder if @errorVariable
|
||||
[].concat @makeCode(" catch ("), placeholder.compileToFragments(o), @makeCode(") {\n"),
|
||||
|
|
Loading…
Reference in a new issue