Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
Lint/RedundantCopDisableDirective: Unnecessary disabling of Performance/RedundantBlockCall
  • Loading branch information
olleolleolle committed Apr 2, 2024
1 parent 87e655f commit c0540b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday/options/env.rb
Expand Up @@ -169,7 +169,7 @@ def stream_response?
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
Expand Down

0 comments on commit c0540b7

Please sign in to comment.