I run dialyzer for my project. I got:
test.erl:97: The created fun has no local return
In 97 line i have:
List = lists:filter(fun(X) ->
{_, _, SomeBoolFlag} = X,
SomeBoolFlag == false
end,
TestList)
What’s wrong?
Thank you.
It seems
dialyzerhave found thatTestListcan contain something other than{_, _, SomeBoolFlag}tuples.And also you can simplify this code a bit:
or: