♻️ Rename var

This commit is contained in:
Daniel 2025-08-02 16:28:29 +08:00
parent 621bee1f14
commit ef80bbd230
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1226,14 +1226,14 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
}
if 5 == orderBy { // 按内容顺序(仅在按文档分组时)
sort := 0
sortVal := 0
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering || !n.IsBlock() {
return ast.WalkContinue
}
contentSorts[n.ID] = sort
sort++
contentSorts[n.ID] = sortVal
sortVal++
return ast.WalkContinue
})
}