diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 19:27:49 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:08 -0700 |
commit | c307e7048da3c02e1e540eab227def7fec7340cc (patch) | |
tree | a134fe5f8822e0d9faa7684b6887bc2c139ecd17 /lib/containers/rbtree_test.go | |
parent | 046162cc1ff55985e3dd45eb191729ead1f9cc8d (diff) |
lint: Turn on gocritic
Diffstat (limited to 'lib/containers/rbtree_test.go')
-rw-r--r-- | lib/containers/rbtree_test.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/containers/rbtree_test.go b/lib/containers/rbtree_test.go index a487c52..e42410e 100644 --- a/lib/containers/rbtree_test.go +++ b/lib/containers/rbtree_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com> +// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com> // // SPDX-License-Identifier: GPL-2.0-or-later @@ -39,13 +39,7 @@ func (node *RBNode[V]) asciiArt(w io.Writer, u, m, l string) { } node.Right.asciiArt(w, u+" ", u+" ,--", u+" | ") - - if node.Color == Red { - fmt.Fprintf(w, "%s%v\n", m, node) - } else { - fmt.Fprintf(w, "%s%v\n", m, node) - } - + fmt.Fprintf(w, "%s%v\n", m, node) node.Left.asciiArt(w, l+" | ", l+" `--", l+" ") } |