Skip to content

Commit 71e441d

Browse files
author
José Valim
committed
Remove IEx warnings
1 parent f11197f commit 71e441d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/iex/lib/iex/evaluator.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ defmodule IEx.Evaluator do
123123
counter: config.counter + 1}
124124
end
125125

126-
defp handle_eval({:error, {line, error, ""}}, code, _line, config) do
127-
# Update config.cache so that IEx continues to add new input to
128-
# the unfinished expression in `code`
129-
%{config | cache: code}
126+
defp handle_eval({:error, {_, _, ""}}, code, _line, config) do
127+
# Update config.cache so that IEx continues to add new input to
128+
# the unfinished expression in `code`
129+
%{config | cache: code}
130130
end
131131

132-
defp handle_eval({:error, {line, error, token}}, code, _line, config) do
133-
# Encountered malformed expression
134-
:elixir_errors.parse_error(line, "iex", error, token)
132+
defp handle_eval({:error, {line, error, token}}, _code, _line, _config) do
133+
# Encountered malformed expression
134+
:elixir_errors.parse_error(line, "iex", error, token)
135135
end
136136

137137
defp update_history(counter, cache, result) do

0 commit comments

Comments
 (0)