Skip to content

Commit

Permalink
if not in debug mode return immediately from PrintTree
Browse files Browse the repository at this point in the history
  • Loading branch information
vbargsten committed Mar 8, 2023
1 parent f170ae4 commit 2797b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/btrfs-diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2797b29

Please sign in to comment.