Skip to content

Commit 40b590f

Browse files
committed
small tweaks based on reviewing the PR diff
1 parent 6b2d9c7 commit 40b590f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/brotlicffi/_api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ def _decompress(self, data, output_buffer_limit):
503503

504504
# Check if we've reached the output limit.
505505
if (
506-
output_buffer_limit is not None
507-
and chunks_len >= output_buffer_limit
506+
output_buffer_limit is not None
507+
and chunks_len >= output_buffer_limit
508508
):
509509
break
510510

@@ -560,10 +560,11 @@ def is_finished(self):
560560
raise error(
561561
"Concurrently sharing Decompressor instances is not allowed")
562562
try:
563-
return (
563+
ret = (
564564
lib.BrotliDecoderIsFinished(self._decoder) == lib.BROTLI_TRUE)
565565
finally:
566566
self.lock.release()
567+
return ret
567568

568569
def can_accept_more_data(self):
569570
"""

0 commit comments

Comments
 (0)