We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
found this rewrite while testing main against a production codebase
- with account <- Map.put(foo, :bar, true), - true <- bop? do - {:ok, []} - else + account = Map.put(foo, :bar, true) + + case bop? do + true -> {:ok, []} _ -> {:error, :forbidden} end
a second rewrite would change that case to an if, so that needs to happen automatically
if
assert_style """ with foo <- bar, true <- bop do :ok else _ -> :error end """, """ foo = bar if bop do :ok else :error end """
The text was updated successfully, but these errors were encountered:
d7e4bb1
No branches or pull requests
found this rewrite while testing main against a production codebase
a second rewrite would change that case to an
if
, so that needs to happen automaticallyThe text was updated successfully, but these errors were encountered: