Skip to content

Commit 992adf9

Browse files
committed
Catch-all clause for unbalanced terminators
1 parent 7b20c28 commit 992adf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/code/fragment.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ defmodule Code.Fragment do
12301230
defp drop_tokens([{:do, _} | tokens], counter), do: drop_tokens(tokens, counter + 1)
12311231

12321232
defp drop_tokens([_ | tokens], counter), do: drop_tokens(tokens, counter)
1233-
defp drop_tokens([], 0), do: []
1233+
defp drop_tokens([], _counter), do: []
12341234

12351235
defp maybe_missing_stab?([{:after, _} | _], _stab_choice?), do: true
12361236
defp maybe_missing_stab?([{:do, _} | _], _stab_choice?), do: true

0 commit comments

Comments
 (0)