Skip to content

Commit 4f7580a

Browse files
committedJan 30, 2025·
Optimize checking of apps and deps
1 parent 943036d commit 4f7580a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/ex_doc/autolink.ex

+1-2
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@ defmodule ExDoc.Autolink do
137137
:ex_doc
138138
else
139139
app = app(module)
140-
apps = Enum.uniq(config.apps ++ Keyword.keys(config.deps))
141140

142-
if is_app_otp(app) and app not in apps do
141+
if is_app_otp(app) and app not in config.apps and not Keyword.has_key?(config.deps, app) do
143142
:otp
144143
else
145144
:ex_doc

0 commit comments

Comments
 (0)
Please sign in to comment.