Skip to content

Commit

Permalink
Refactor module name with &Macro.to_string/1
Browse files Browse the repository at this point in the history
  • Loading branch information
NJichev committed Feb 22, 2024
1 parent b9bad28 commit 74b530f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ defmodule NextLS.ElixirExtension.CodeAction.Require do
name =
alias
|> Module.concat()
|> to_string()
|> String.replace_prefix("Elixir.", "")
|> Macro.to_string()

{:ok, name}
end
Expand Down

0 comments on commit 74b530f

Please sign in to comment.