Use triple underscore instead of double

This commit is contained in:
Uku Taht
2016-04-20 11:23:44 +01:00
parent ea2bb8f9bf
commit ded0f11ec6
16 changed files with 148 additions and 161 deletions

View File

@@ -51,19 +51,6 @@ defmodule BlankAssertions do
end
defp contains_blank?(expr) do
{_, blank} = Macro.prewalk(expr, false, &blank?/2)
blank
end
defp blank?(node, true) do
{node, true}
end
defp blank?({expr, _, _} = node, _acc) do
{node, expr == :__}
end
defp blank?(expr, _acc) do
{expr, expr == :__}
Blanks.count(expr) > 0
end
end