From 58975bf4eafd518975e82e63c088a7ff005bd9fc Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 9 Jan 2023 17:39:02 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=87=AA=E5=8A=A8=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E7=B4=A2=E5=BC=95=20https://github.?= =?UTF-8?q?com/siyuan-note/siyuan/issues/7016?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/treenode/blocktree.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/treenode/blocktree.go b/kernel/treenode/blocktree.go index f40064ae8..d1a26f2f5 100644 --- a/kernel/treenode/blocktree.go +++ b/kernel/treenode/blocktree.go @@ -117,13 +117,12 @@ func CeilBlockCount(count int) int { } func GetNotExistPaths(boxID string, paths []string) (ret []string) { - tmp := blockTrees - pathsMap := map[string]bool{} for _, path := range paths { pathsMap[path] = true } + tmp := blockTrees for _, blockTree := range tmp { if blockTree.BoxID != boxID { continue