diff options
| author | Andrew Janke | 2017-06-19 00:36:18 -0400 |
|---|---|---|
| committer | Andrew Janke | 2017-06-19 23:37:32 -0400 |
| commit | b5a0cfd86180790b0071becc744a2da2fda3703e (patch) | |
| tree | 73d0bc7a7a9bd957823c051fb617088b41869aad /Library/Homebrew/rubocops/bottle_block_cop.rb | |
| parent | b05545a3bf5e22bcf845d0c2f58cae745431c98c (diff) | |
| download | brew-b5a0cfd86180790b0071becc744a2da2fda3703e.tar.bz2 | |
rubocops: use consistent (_)body_node parameter name
Diffstat (limited to 'Library/Homebrew/rubocops/bottle_block_cop.rb')
| -rw-r--r-- | Library/Homebrew/rubocops/bottle_block_cop.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/rubocops/bottle_block_cop.rb b/Library/Homebrew/rubocops/bottle_block_cop.rb index f0c7d59bb..77759e427 100644 --- a/Library/Homebrew/rubocops/bottle_block_cop.rb +++ b/Library/Homebrew/rubocops/bottle_block_cop.rb @@ -10,8 +10,8 @@ module RuboCop class BottleBlock < FormulaCop MSG = "Use rebuild instead of revision in bottle block".freeze - def audit_formula(_node, _class_node, _parent_class_node, formula_class_body_node) - bottle = find_block(formula_class_body_node, :bottle) + def audit_formula(_node, _class_node, _parent_class_node, body_node) + bottle = find_block(body_node, :bottle) return if bottle.nil? || block_size(bottle).zero? problem "Use rebuild instead of revision in bottle block" if method_called_in_block?(bottle, :revision) end |
