Would like to know why am I getting a warning: this check/guard will always yield the same result
when trying to use “&&” inside macro and how to solve it.
For example my macro is:
defmacro auth(left, right) do
quote do
unquote(left) && unquote(right)
end
end
Sorry guys I think I misdiagnosed the problem. I am using GitHub - arjan/decorator: Function decorators for Elixir and I have set @decorate_all my_decorator(:some_arg)
The problem could be from the decorator. The warning is gone when I removed it.