Skip to content

Commit 17724ce

Browse files
kevinrobell-stydah
andauthored
Clean up rubocop:disable
Co-authored-by: Yudai Takada <[email protected]>
1 parent 9152c2a commit 17724ce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rubocop/cop/rspec/output.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class Output < Base
3434
...)
3535
PATTERN
3636

37-
# rubocop:disable Metrics/CyclomaticComplexity
38-
def on_send(node)
37+
def on_send(node) # rubocop:disable Metrics/CyclomaticComplexity
3938
return if node.parent&.call_type? || node.block_node
4039
return if !output?(node) && !io_output?(node)
4140
return if node.arguments.any? { |arg| arg.type?(:hash, :block_pass) }
@@ -44,7 +43,6 @@ def on_send(node)
4443

4544
add_offense(range)
4645
end
47-
# rubocop:enable Metrics/CyclomaticComplexity
4846

4947
private
5048

0 commit comments

Comments
 (0)