From 2797b296b604d33f09b890f4dd8389b3604368cb Mon Sep 17 00:00:00 2001 From: Vinzenz Bargsten Date: Wed, 8 Mar 2023 21:51:06 +0100 Subject: [PATCH] if not in debug mode return immediately from PrintTree --- pkg/btrfs-diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/btrfs-diff.go b/pkg/btrfs-diff.go index bd1db35..1da67a6 100644 --- a/pkg/btrfs-diff.go +++ b/pkg/btrfs-diff.go @@ -166,7 +166,7 @@ func debugInd(ind int, msg string, params ...interface{}) { // print a diff tree (only if debug mode is enabled) func (node *nodeInst) PrintTree(w io.Writer, root bool, padding string, lenParent int, indexParent int) { - if node == nil { + if node == nil || !debugMode { return }