Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
petvana committed Mar 11, 2022
1 parent 2cdb1aa commit 99e24d7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,10 @@ function ht_keyindex2!(h::Dict{K,V}, key) where V where K
# in case "key" already exists in a later collided slot.
avail = -index
end
else
if h.slots[index] == sh
k = pairs[index].first
if key === k || isequal(key, k)
return index, sh
end
elseif h.slots[index] == sh
k = pairs[index].first
if key === k || isequal(key, k)
return index, sh
end
end

Expand Down

0 comments on commit 99e24d7

Please sign in to comment.