Skip to content

Commit

Permalink
Correct Style/RedundantParentheses documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Uaitt authored and bbatsov committed Feb 17, 2025
1 parent 7fc05f8 commit d4525d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rubocop/cop/style/redundant_parentheses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ module Style
# # good
# x if y.z.nil?
#
# rubocop:disable Metrics/ClassLength
class RedundantParentheses < Base
class RedundantParentheses < Base # rubocop:disable Metrics/ClassLength
include Parentheses
extend AutoCorrector

Expand Down Expand Up @@ -299,7 +298,6 @@ def do_end_block_in_method_chain?(begin_node, node)
block.keywords? && begin_node.each_ancestor(:call).any?
end
end
# rubocop:enable Metrics/ClassLength
end
end
end

0 comments on commit d4525d6

Please sign in to comment.