Skip to content

Commit

Permalink
🎨 Improve kernel stability #9912
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 19, 2023
1 parent bab8aaf commit a41797d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kernel/model/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
root = hpathBtMap[hp]
isNotLast := i < len(parts)-1
if nil == root {
retID = ast.NewNodeID()
if "" == retID {
retID = ast.NewNodeID()
}
pathBuilder.WriteString(retID)
docP := pathBuilder.String() + ".sy"
if isNotLast {
Expand All @@ -116,7 +118,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
}
}
} else {
retID = root.ID
if "" == retID {
retID = root.ID
}
pathBuilder.WriteString(root.ID)
if !isNotLast {
pathBuilder.WriteString(".sy")
Expand Down

0 comments on commit a41797d

Please sign in to comment.