Skip to content

Commit

Permalink
oneliner
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Dec 7, 2023
1 parent cba6cd7 commit cdcbdad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/style/blocks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ defmodule Styler.Style.Blocks do
defp style({:if, m, [{negator, _, [expr]}, [{do_, do_body}, {else_, else_body}]]}) when negator in [:!, :not],
do: style({:if, m, [expr, [{do_, else_body}, {else_, do_body}]]})

defp style({:if, m, [head, [do_block, {_, {:__block__, _, [nil]}}]]}),
do: {:if, m, [head, [do_block]]}
defp style({:if, m, [head, [do_block, {_, {:__block__, _, [nil]}}]]}), do: {:if, m, [head, [do_block]]}

defp style(node), do: node

Expand Down

0 comments on commit cdcbdad

Please sign in to comment.