Lint/RedundantCopDisableDirective: Unnecessary disabling of Performance/RedundantBlockCall
This commit is contained in:
Olle Jonsson 2024-04-02 12:50:41 +02:00 committed by Olle Jonsson
parent 87e655f306
commit c0540b7ba3

View File

@ -169,7 +169,7 @@ module Faraday
def stream_response(&block)
size = 0
yielded = false
block_result = block.call do |chunk| # rubocop:disable Performance/RedundantBlockCall
block_result = block.call do |chunk|
if chunk.bytesize.positive? || size.positive?
yielded = true
size += chunk.bytesize