Skip to content

Commit

Permalink
remove not needed workaround
Browse files Browse the repository at this point in the history
:gen_statem.StateName is an example callback
namin is now consistent since OTP 27
  • Loading branch information
lukaszsamson committed Jul 13, 2024
1 parent ec35840 commit f0be0d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/elixir_sense/core/introspection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ defmodule ElixirSense.Core.Introspection do
if kind == :macrocallback do
{:"MACRO-#{name}", arity + 1}
else
# some erlang callbacks have broken docs e.g. :gen_statem.state_name
{name |> Atom.to_string() |> Macro.underscore() |> String.to_atom(), arity}
{name, arity}
end

case List.keyfind(callbacks, key, 0) do
Expand Down

0 comments on commit f0be0d8

Please sign in to comment.