fix: don't add empty compact branches (#8587)

pull/24376/head
Joe-Blount 2023-08-28 14:02:19 -05:00 committed by GitHub
parent 2572bea8d7
commit 02c338ba70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -258,7 +258,9 @@ impl DivideInitial for MultipleBranchesDivideInitial {
f2.overlaps_time_range(Timestamp::new(range.min), Timestamp::new(range.max))
});
branches.push(this_branch)
if !this_branch.is_empty() {
branches.push(this_branch)
}
}
assert!(files.is_empty(), "all files should map to a range");
(branches, vec![])