Skip to content

Commit c303262

Browse files
authored
minor inferrability tweak for manifest_deps_get (#38954)
1 parent 58d6684 commit c303262

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/loading.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ function project_deps_get(env::String, name::String)::Union{Nothing,PkgId}
360360
end
361361

362362
function manifest_deps_get(env::String, where::PkgId, name::String)::Union{Nothing,PkgId}
363-
@assert where.uuid !== nothing
363+
uuid = where.uuid
364+
@assert uuid !== nothing
364365
project_file = env_project_file(env)
365366
if project_file isa String
366367
# first check if `where` names the Project itself
@@ -371,7 +372,7 @@ function manifest_deps_get(env::String, where::PkgId, name::String)::Union{Nothi
371372
return PkgId(pkg_uuid, name)
372373
end
373374
# look for manifest file and `where` stanza
374-
return explicit_manifest_deps_get(project_file, where.uuid, name)
375+
return explicit_manifest_deps_get(project_file, uuid, name)
375376
elseif project_file
376377
# if env names a directory, search it
377378
return implicit_manifest_deps_get(env, where, name)

0 commit comments

Comments
 (0)