Skip to content

Commit 35f40ca

Browse files
committed
skip empty line
1 parent abd6c8f commit 35f40ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/oxide/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ fn parse_all_blobs(blobs: Vec<Vec<u8>>) -> Vec<String> {
457457
let mut result: Vec<_> = blobs
458458
.par_iter()
459459
.flat_map(|blob| blob.par_split(|x| matches!(x, b'\n')))
460+
.filter(|blob| !blob.is_empty())
460461
.map(|blob| Extractor::unique(blob, Default::default()))
461462
.reduce(Default::default, |mut a, b| {
462463
a.extend(b);

0 commit comments

Comments
 (0)