crisprVerse / kaori

C++ library for barcode counting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix the line count calculation

LTLA opened this issue · comments

at

// Processing the sequence itself until we get to a '+'.
sequence.clear();
val = advance_and_check();
while (val != '+') {
if (val != '\n') {
sequence.push_back(val);
}
val = advance_and_check();
}
++line_count;

it's probably unnecesarry to check val != '+' at each iteration, given that should only happen after a newline.