Skip to content

Commit

Permalink
Improve inference in REPL LineEdit.jl getEntry (#46550)
Browse files Browse the repository at this point in the history
This prevents invalidations from loading Static.jl

(cherry picked from commit adc72d1)
  • Loading branch information
ranocha authored and KristofferC committed Sep 7, 2022
1 parent f21aea0 commit 89facae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ end
function getEntry(keymap::Dict{Char,Any},key::Union{String,Char})
v = keymap
for c in key
if !haskey(v,c)
if !(haskey(v,c)::Bool)
return nothing
end
v = v[c]
Expand Down

0 comments on commit 89facae

Please sign in to comment.