Skip to content

Commit b2dd7d9

Browse files
committed
Catch-all clause for unbalanced terminators
1 parent 2cfd329 commit b2dd7d9

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
@@ -1332,7 +1332,7 @@ defmodule Code.Fragment do
13321332
defp drop_tokens([{:do, _} | tokens], counter), do: drop_tokens(tokens, counter + 1)
13331333

13341334
defp drop_tokens([_ | tokens], counter), do: drop_tokens(tokens, counter)
1335-
defp drop_tokens([], 0), do: []
1335+
defp drop_tokens([], _counter), do: []
13361336

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

0 commit comments

Comments
 (0)