summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2017-05-26 10:06:40 +0200
committerJosé Valim <jose.valim@plataformatec.com.br>2017-05-26 10:06:40 +0200
commit0d14e724d424cb1b3edcd443d3881f2d1b309b24 (patch)
tree83d536f709bf99c5299203ddcbe6b9270205fc37
parent945c40ceec8667321d8010b8d66ffbd21ba6092c (diff)
downloadelixir-0d14e724d424cb1b3edcd443d3881f2d1b309b24.tar.gz
Move private function to describe block to avoid warnings
-rw-r--r--lib/elixir/test/elixir/exception_test.exs22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/elixir/test/elixir/exception_test.exs b/lib/elixir/test/elixir/exception_test.exs
index 43a3d2288..328c0ccb0 100644
--- a/lib/elixir/test/elixir/exception_test.exs
+++ b/lib/elixir/test/elixir/exception_test.exs
@@ -368,19 +368,19 @@ defmodule ExceptionTest do
]
end
end
- end
- defp annotated_clauses_to_string(clauses) do
- Enum.map(clauses, fn args_and_clauses ->
- Macro.to_string(args_and_clauses, fn
- %{match?: true, node: node}, _string ->
- "+" <> Macro.to_string(node) <> "+"
- %{match?: false, node: node}, _string ->
- "-" <> Macro.to_string(node) <> "-"
- _node, string ->
- string
+ defp annotated_clauses_to_string(clauses) do
+ Enum.map(clauses, fn args_and_clauses ->
+ Macro.to_string(args_and_clauses, fn
+ %{match?: true, node: node}, _string ->
+ "+" <> Macro.to_string(node) <> "+"
+ %{match?: false, node: node}, _string ->
+ "-" <> Macro.to_string(node) <> "-"
+ _node, string ->
+ string
+ end)
end)
- end)
+ end
end
## Exception messages