Skip to content

Commit

Permalink
changing the skip behaviour to allow skip 0
Browse files Browse the repository at this point in the history
  • Loading branch information
silverdaz authored Dec 28, 2023
1 parent 1335786 commit a3e1aef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crypt4gh/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ def _fetch(self, nodecrypt=False):

def skip(self, size):
"""Skip size bytes."""
assert(size > 0)
if not size:
return

assert(size > 0)
LOG.debug('Skipping %d bytes | Buffer size: %d', size, self.buf_size())

while size > 0:
Expand Down

0 comments on commit a3e1aef

Please sign in to comment.