Skip to content

Commit 7553ca1

Browse files
authored
fix preference loading (#41294)
1 parent d68e570 commit 7553ca1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/loading.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1765,9 +1765,9 @@ function get_preferences_hash(uuid::Union{UUID, Nothing}, prefs_list::Vector{Str
17651765

17661766
# Walk through each name that's called out as a compile-time preference
17671767
for name in prefs_list
1768-
prefs_name = get(prefs, name, nothing)::Union{String, Nothing}
1769-
if prefs_name !== nothing
1770-
h = hash(prefs_name, h)
1768+
prefs_value = get(prefs, name, nothing)
1769+
if prefs_value !== nothing
1770+
h = hash(prefs_value, h)
17711771
end
17721772
end
17731773
# We always return a `UInt64` so that our serialization format is stable

0 commit comments

Comments
 (0)