Skip to content

Commit

Permalink
refactor: only matching aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
gp-pereira committed Nov 17, 2024
1 parent ae685be commit 1454bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/refactorex/refactor/alias/inline_alias.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Refactorex.Refactor.Alias.InlineAlias do
kind: "refactor.inline",
works_on: :selection

def can_refactor?(%{node: node} = zipper, selection) do
def can_refactor?(%{node: {:__aliases__, _, _} = node} = zipper, selection) do
cond do
not AST.equal?(node, selection) ->
false
Expand Down

0 comments on commit 1454bc8

Please sign in to comment.