Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kimono-koans committed Aug 11, 2024
1 parent 4e207d3 commit daa21e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/library/diff_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,11 @@ impl DiffCopy {

loop {
// seek to current byte offset in dst writer
let seeked = dst_writer.seek(SeekFrom::Start(seek_pos))?;
let pos = dst_writer.seek(SeekFrom::Start(seek_pos))?;

assert_eq!(seeked, seek_pos);
if pos != seek_pos {
continue;
}

amt_written += dst_writer.write(src_read)? as u64;

Expand Down

0 comments on commit daa21e9

Please sign in to comment.