Skip to content

Commit 2acb440

Browse files
committed
also accept string nodes
1 parent aa883b0 commit 2acb440

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/problematic_variable_finder/parsing.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def line
5454
def first_child
5555
child = sexp.children.first
5656
case child
57-
when Symbol
57+
when Symbol, String
5858
child
5959
else
6060
self.class.new(child, to_a(child))
@@ -64,7 +64,7 @@ def first_child
6464
def last_child
6565
child = sexp.children.last
6666
case child
67-
when Symbol
67+
when Symbol, String
6868
child
6969
else
7070
self.class.new(child, to_a(child))

0 commit comments

Comments
 (0)