Skip to content

Commit 4060c45

Browse files
authored
loading: rm no-op conditional in cache rejection (#60150)
Introduced in #55992 - looks like rebase mistake, the actually operating condition is equivalent modulo the extra readabilitycheck.
1 parent 19d07d2 commit 4060c45

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

base/loading.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4232,7 +4232,6 @@ end
42324232
# file before comparing it with `modpath`.
42334233
stdlib_path = fixup_stdlib_path(includes[1].filename)
42344234
if !(isreadable(stdlib_path) && samefile(stdlib_path, modpath))
4235-
!samefile(fixup_stdlib_path(includes[1].filename), modpath)
42364235
@debug "Rejecting cache file $cachefile because it is for file $(includes[1].filename) not file $modpath"
42374236
record_reason(reasons, "different source file path")
42384237
return true # cache file was compiled from a different path

0 commit comments

Comments
 (0)