adobe/elixir-styler

rewrite `if a != b, do: x, else: y` negations?

novaugust opened this issue · 0 comments

Versions

  • Elixir: use elixir --version
  • Styler: use mix deps | grep locked | grep styler

Example Input

    x =
      if y[:z] != w do
        a
      else
        b
      end

right now we only rewrite ! and not operators. should we rewrite != to ==? what repercussions would there be for things like ! (a != b)?