Skip to content

Commit

Permalink
[rubocop] fix Lint/UnusedBlockArgument
Browse files Browse the repository at this point in the history
Signed-off-by: David Crosby <dcrosby@fb.com>
  • Loading branch information
dafyddcrosby committed Jan 23, 2024
1 parent 7bd108c commit 0a7d16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/chefstyle/ruby/gemspec_require_rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GemspecRequireRubygems < Base
PATTERN

def on_send(node)
require_rubygems?(node) do |r|
require_rubygems?(node) do |_r|
node = node.parent if node.parent && node.parent.conditional? # make sure we identify conditionals on the require
add_offense(node.loc.expression, message: MSG, severity: :refactor) do |corrector|
corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left))
Expand Down

0 comments on commit 0a7d16f

Please sign in to comment.