This commit is contained in:
Julien Bisconti
2026-02-28 01:09:04 +01:00
parent 0089da7ecb
commit 8dc187abc3
5 changed files with 10 additions and 9 deletions

View File

@@ -110,7 +110,8 @@ func Parse(r io.Reader) (Document, error) {
func buildTree(flat []struct {
section Section
level int
}) []Section {
},
) []Section {
if len(flat) == 0 {
return nil
}