Avoid unecessary wrap inside do keyword

This commit is contained in:
José Valim
2014-07-19 18:13:38 +02:00
parent c42fe88dcc
commit a1e4a2741f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ handle_file_warning(_, File, {Line, sys_core_fold, {no_effect, {erlang, F, A}}})
false ->
case erl_internal:bif(F, A) of
false -> {"the call to :erlang.~ts/~B has no effect", [F,A]};
true -> {"the call to ~ts/~B has no effect", [F,A]}
true -> {"the call to ~ts/~B has no effect", [F,A]}
end
end,
Message = io_lib:format(Fmt, Args),
+2 -2
View File
@@ -198,9 +198,9 @@ defmodule ExUnit.Case do
defmacro test(message, var \\ quote(do: _), contents) do
contents =
case contents do
[do: _] ->
[do: block] ->
quote do
unquote(contents)
unquote(block)
:ok
end
_ ->