Skip to content

Commit f0f2405

Browse files
committed
Ignore curr_records cleanup in coverage calculations
1 parent 6183592 commit f0f2405

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/read_mismatchbam_cpp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -886,14 +886,14 @@ Rcpp::List read_mismatchbam_cpp(std::string inname_str,
886886
}
887887
for (curr_records_it = curr_records.begin();
888888
curr_records_it != curr_records.end();
889-
curr_records_it++) {
889+
curr_records_it++) { // # nocov start
890890
if (curr_records_it->second) {
891891
bam_destroy1(curr_records_it->second);
892892
}
893-
}
894-
if (curr_records.size() > 0) {
893+
} // # nocov end
894+
if (curr_records.size() > 0) { // # nocov start
895895
curr_records.clear();
896-
}
896+
} // # nocov end
897897

898898
if (had_error) {
899899
// we encountered an error (message in `buffer`) --> stop

0 commit comments

Comments
 (0)