Skip to content

Commit 2d26c8e

Browse files
Fix line ending check in parse_paf_bgzf function for improved clarity
1 parent 42a0d2e commit 2d26c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/paf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub fn parse_paf_bgzf<R: std::io::Read + std::io::Seek>(
154154
}
155155

156156
// Convert to string for parsing (excluding newline)
157-
let line_len = if line_bytes.ends_with(&[b'\n']) {
157+
let line_len = if line_bytes.ends_with(b"\n") {
158158
line_bytes.len() - 1
159159
} else {
160160
line_bytes.len()

0 commit comments

Comments
 (0)