Skip to content

Commit bb99093

Browse files
committed
fix visit_call_node
1 parent 96214e4 commit bb99093

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lib/rspec_tree/visitor.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,9 @@ def call_nodes_in_block(node)
9090
end
9191

9292
def visit_call_node(node)
93-
if root_describe_node?(node)
94-
handle_root_describe_node(node)
95-
elsif describe_node?(node)
96-
handle_describe_node(node)
97-
elsif context_node?(node)
98-
handle_context_node(node)
99-
elsif example_node?(node)
100-
handle_example_node(node)
101-
end
93+
return unless root_describe_node?(node)
94+
95+
handle_root_describe_node(node)
10296
end
10397
end
10498
end

0 commit comments

Comments
 (0)