From e799a0f5c7ae90b6db3b9f63e2d82765b30200e6 Mon Sep 17 00:00:00 2001 From: xuweiwei Date: Sat, 20 Nov 2021 00:18:31 +0800 Subject: plugin/file: Fix print tree error (#4962) Automatically submitted. --- plugin/file/tree/print.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/file/tree/print.go') diff --git a/plugin/file/tree/print.go b/plugin/file/tree/print.go index bd86ef690..b2df70e1b 100644 --- a/plugin/file/tree/print.go +++ b/plugin/file/tree/print.go @@ -29,9 +29,9 @@ func (n *Node) print() { } if nodesInCurrentLevel == 0 { fmt.Println() + nodesInCurrentLevel = nodesInNextLevel + nodesInNextLevel = 0 } - nodesInCurrentLevel = nodesInNextLevel - nodesInNextLevel = 0 } fmt.Println() } -- cgit v1.2.3