Skip to content

Commit

Permalink
Update node type
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Jan 18, 2025
1 parent eb60776 commit be87f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/solargraph/type_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def argument_problems_for chain, api_map, block_pin, locals, location
next
else
last = base.links.last.arguments.last
argchain = last if last && [:kwsplat, :HASH].include?(last.node.type)
argchain = last if last && [:kwsplat, :hash].include?(last.node.type)
end
end
if argchain
Expand Down Expand Up @@ -338,7 +338,7 @@ def kwarg_problems_for argchain, api_map, block_pin, locals, location, pin, para
if argchain
data = params[par.name]
if data.nil?
# @todo Some level (strong, I guess) should require the param here
# @todo Some level (strong, I guess) should require the param here
else
ptype = data[:qualified]
unless ptype.undefined?
Expand Down

0 comments on commit be87f5d

Please sign in to comment.