Skip to content

Commit

Permalink
spike a fix for #69
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Aug 30, 2023
1 parent 7f3f843 commit e332dc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/style/single_node.ex
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@ defmodule Styler.Style.SingleNode do

defp style(node), do: node

defp r_align_matches(arrows),
defp r_align_matches(arrows) when is_list(arrows),
do: Enum.map(arrows, fn {:->, m, [lhs, rhs]} -> {:->, m, [put_matches_on_right(lhs), rhs]} end)

defp r_align_matches(macros_or_something_crazy_oh_no_abooort), do: macros_or_something_crazy_oh_no_abooort

defp put_matches_on_right(ast) do
ast
|> Zipper.zip()
Expand Down

0 comments on commit e332dc7

Please sign in to comment.