You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on Elixir mode 20170102.942 from melpa. I get the code indented like this
with {:ok, body} <- File.read(filename),
{:ok, json} <- Poison.decode(body), do: {:ok, json}
else
_ ->
return {:error, "#{filename} does not exist or is not JSON"}
end
It's ok if I omit the : in the do:
with {:ok, body} <- File.read(filename),
{:ok, json} <- Poison.decode(body), do {:ok, json}
else
_ ->
return {:error, "#{filename} does not exist or is not JSON"}
end
I have this gem of indentation in my code right now (and yes, that's how emacs wants it indented):
The text was updated successfully, but these errors were encountered: