From f0be0d835001ebecde92509fca12c2c60fb922c0 Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Sat, 13 Jul 2024 09:14:29 +0200 Subject: [PATCH] remove not needed workaround :gen_statem.StateName is an example callback namin is now consistent since OTP 27 --- lib/elixir_sense/core/introspection.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/elixir_sense/core/introspection.ex b/lib/elixir_sense/core/introspection.ex index e1bd77a4..2ac18edf 100644 --- a/lib/elixir_sense/core/introspection.ex +++ b/lib/elixir_sense/core/introspection.ex @@ -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