Skip to content

Commit

Permalink
Improve inference in REPL LineEdit.jl getEntry (JuliaLang#46550)
Browse files Browse the repository at this point in the history
This prevents invalidations from loading Static.jl
  • Loading branch information
ranocha committed Sep 7, 2022
1 parent 6d15bbb commit 39e18d0
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 39e18d0

Please sign in to comment.