Skip to content

Commit

Permalink
the simple solution
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Apr 5, 2024
1 parent 741d5ed commit fa67edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/style/module_directives.ex
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ defmodule Styler.Style.ModuleDirectives do
{:skip, zipper, acc}

{{:__aliases__, _, [_, _, _ | _] = aliases}, _} = zipper, {lifts, excluded} = acc ->
if List.last(aliases) in excluded or not Enum.all?(aliases, &is_atom/1),
if List.last(aliases) in excluded or List.first(aliases) in excluded or not Enum.all?(aliases, &is_atom/1),
do: {:skip, zipper, acc},
else: {:skip, zipper, {Map.update(lifts, aliases, false, fn _ -> true end), excluded}}

Expand Down

0 comments on commit fa67edc

Please sign in to comment.