Skip to content

Commit a381829

Browse files
committed
updated case statement in translate
1 parent 24b0441 commit a381829

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/ex_to_js/translator.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ defmodule ExToJS.Translator do
1111
do_translation(ast)
1212
{one, two} ->
1313
do_translation({one, two})
14-
_ ->
15-
{atom, metadata, args} = ex_ast
14+
{atom, metadata, args} ->
1615
do_translation({atom, metadata, args})
1716
end
1817
end
@@ -220,7 +219,7 @@ defmodule ExToJS.Translator do
220219

221220
defp do_translation({:if, _, [test, blocks]}) do
222221
test = do_translation(test)
223-
222+
224223
consequent = Builder.block_statement([do_translation(blocks[:do])])
225224

226225
alternate = if blocks[:else] != nil do

0 commit comments

Comments
 (0)