Fix Stanza#source_range_with_comments
- All hail Sorbet for telling me that I forgot to rename this variable!
This commit is contained in:
parent
10bdb9f653
commit
6e6493bd1b
@ -28,7 +28,7 @@ module RuboCop
|
|||||||
end
|
end
|
||||||
|
|
||||||
def source_range_with_comments
|
def source_range_with_comments
|
||||||
comments.reduce(source_range) do |range, comment|
|
stanza_comments(stanza_node).reduce(source_range) do |range, comment|
|
||||||
range.join(comment.loc.expression)
|
range.join(comment.loc.expression)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user