aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/dirtree.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/dirtree.go b/widgets/dirtree.go
index b28d8072..7b10f02e 100644
--- a/widgets/dirtree.go
+++ b/widgets/dirtree.go
@@ -374,8 +374,7 @@ func buildTree(node *types.Thread, stree [][]string, defaultUid uint32) {
m := make(map[string][][]string)
for _, branch := range stree {
if len(branch) > 1 {
- var next [][]string
- next = append(m[branch[0]], branch[1:])
+ next := append(m[branch[0]], branch[1:])
m[branch[0]] = next
}
}