Skip to content

Commit

Permalink
Optimize checking of apps and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 30, 2025
1 parent 943036d commit 4f7580a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ex_doc/autolink.ex
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ defmodule ExDoc.Autolink do
:ex_doc
else
app = app(module)
apps = Enum.uniq(config.apps ++ Keyword.keys(config.deps))

if is_app_otp(app) and app not in apps do
if is_app_otp(app) and app not in config.apps and not Keyword.has_key?(config.deps, app) do
:otp
else
:ex_doc
Expand Down

0 comments on commit 4f7580a

Please sign in to comment.