Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Mar 18, 2024
1 parent 7135643 commit 0c8f784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ruby_lsp/ruby_lsp_rails/document_symbol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def handle_all_arg_types(node, message)

arg_receiver = argument.receiver

name = arg_receiver.full_name if arg_receiver.is_a?(Prism::ConstantReadNode) || arg_receiver.is_a?(Prism::ConstantPathNode)
name = arg_receiver.full_name if arg_receiver.is_a?(Prism::ConstantReadNode) ||
arg_receiver.is_a?(Prism::ConstantPathNode)
next unless name

append_document_symbol(
Expand Down

0 comments on commit 0c8f784

Please sign in to comment.