Skip to content

Commit

Permalink
fix broken pipe error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvollger committed Sep 8, 2024
1 parent d58baec commit 16fa461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subcommands/pileup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl<'a> FiberseqPileup<'a> {
// don't write empty lines unless keep_zeros is set
if self.pileup_opts.keep_zeros || self.all_data.coverage[write_start_index] > 0 {
line += "\n";
out.write_all(line.as_bytes())?;
bio_io::write_to_file(&line, out);
}
// reset the write indexes
write_start_index = i;
Expand Down

0 comments on commit 16fa461

Please sign in to comment.