Skip to content

Commit 38fa7f3

Browse files
committed
RSpec/SubjectStub. Code review fixes. Removed excessive memoization
1 parent 342e99d commit 38fa7f3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/rubocop/rspec/top_level_group.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ def top_level_groups
2929
end
3030

3131
def top_level_nodes
32-
@top_level_nodes ||=
33-
if root_node.begin_type?
34-
root_node.children
35-
else
36-
[root_node]
37-
end
32+
if root_node.begin_type?
33+
root_node.children
34+
else
35+
[root_node]
36+
end
3837
end
3938

4039
def root_node

0 commit comments

Comments
 (0)