Skip to content

Commit

Permalink
avoid constructing structs as it may fail
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Nov 9, 2023
1 parent d8fe390 commit 36a9900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir_sense/core/introspection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ defmodule ElixirSense.Core.Introspection do
:implementation

has_func.(:__struct__, 0) ->
if Map.get(module.__struct__, :__exception__) do
if has_func.(:exception, 1) do
:exception
else
:struct
Expand Down

0 comments on commit 36a9900

Please sign in to comment.