From 6e6493bd1b8cf3f56b1a8f9ebf52b1b4d46242a6 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Wed, 12 Apr 2023 20:51:32 +0100 Subject: [PATCH] Fix `Stanza#source_range_with_comments` - All hail Sorbet for telling me that I forgot to rename this variable! --- Library/Homebrew/rubocops/cask/ast/stanza.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/rubocops/cask/ast/stanza.rb b/Library/Homebrew/rubocops/cask/ast/stanza.rb index b5e16eed64..9fc518e94e 100644 --- a/Library/Homebrew/rubocops/cask/ast/stanza.rb +++ b/Library/Homebrew/rubocops/cask/ast/stanza.rb @@ -28,7 +28,7 @@ module RuboCop end 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) end end