Skip to content

Commit d4525d6

Browse files
Uaittbbatsov
authored andcommitted
Correct Style/RedundantParentheses documentation
1 parent 7fc05f8 commit d4525d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rubocop/cop/style/redundant_parentheses.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ module Style
1313
# # good
1414
# x if y.z.nil?
1515
#
16-
# rubocop:disable Metrics/ClassLength
17-
class RedundantParentheses < Base
16+
class RedundantParentheses < Base # rubocop:disable Metrics/ClassLength
1817
include Parentheses
1918
extend AutoCorrector
2019

@@ -299,7 +298,6 @@ def do_end_block_in_method_chain?(begin_node, node)
299298
block.keywords? && begin_node.each_ancestor(:call).any?
300299
end
301300
end
302-
# rubocop:enable Metrics/ClassLength
303301
end
304302
end
305303
end

0 commit comments

Comments
 (0)