Interpolation Content is Not Recognised
Closed this issue · 0 comments
rajaramghosh commented
This code below gives the following message in VSCode ElixirLS, even though both are used in interpolation
variable "conv" is unused (if the variable is not meant to be used, prefix it with an underscore)
and
function status_reason/1 is unused
def full_status(conv) do
#{conv.status} #{status_reason(conv.status)}
end
defp status_reason(code) do
%{
200 => "Ok",
404 => "Not Found"
}[code]
end