mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-10 00:03:09 -04:00
Lint fix
Lint/RedundantCopDisableDirective: Unnecessary disabling of Performance/RedundantBlockCall
This commit is contained in:
parent
87e655f306
commit
c0540b7ba3
@ -169,7 +169,7 @@ module Faraday
|
|||||||
def stream_response(&block)
|
def stream_response(&block)
|
||||||
size = 0
|
size = 0
|
||||||
yielded = false
|
yielded = false
|
||||||
block_result = block.call do |chunk| # rubocop:disable Performance/RedundantBlockCall
|
block_result = block.call do |chunk|
|
||||||
if chunk.bytesize.positive? || size.positive?
|
if chunk.bytesize.positive? || size.positive?
|
||||||
yielded = true
|
yielded = true
|
||||||
size += chunk.bytesize
|
size += chunk.bytesize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user