Skip to content

Commit

Permalink
Remove unnecessary lvalue allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Aug 12, 2024
1 parent d9f785a commit 066e5a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fastwarc/fastwarc/stream_io.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ cdef class IOStream:
:return: number of bytes written
:rtype: int
"""
size = self.write_(<const char*>data, len(data))
return size
return self.write_(<const char*>data, len(data))

cpdef void seek(self, size_t offset) except *:
"""
Expand Down Expand Up @@ -338,7 +337,7 @@ cdef class CompressingStream(IOStream):
cpdef size_t end_member(self):
"""
End compression member / frame (if one has been started).
If ytd
:return: bytes written
:rtype: int
"""
Expand Down

0 comments on commit 066e5a1

Please sign in to comment.