Fix Stanza#source_range_with_comments

- All hail Sorbet for telling me that I forgot to rename this variable!
This commit is contained in:
Issy Long 2023-04-12 20:51:32 +01:00
parent 10bdb9f653
commit 6e6493bd1b
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -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