diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-29 21:25:56 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-04 21:57:50 +0200 |
commit | 03f9f4c3ab633f3b567813b55b90ba9aac604e3e (patch) | |
tree | ee90524b9921f0f4d5b6c3b92b9a7ed554466fe0 /widgets/dirtree.go | |
parent | 2534612c5929782f4bf9f27df65d1d024d6947ca (diff) | |
download | aerc-03f9f4c3ab633f3b567813b55b90ba9aac604e3e.tar.gz |
lint: remove ineffectual assignments (ineffassign)
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/dirtree.go')
-rw-r--r-- | widgets/dirtree.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/widgets/dirtree.go b/widgets/dirtree.go index e5404343..f135a0c3 100644 --- a/widgets/dirtree.go +++ b/widgets/dirtree.go @@ -375,9 +375,6 @@ func buildTree(node *types.Thread, stree [][]string, defaultUid uint32) { for _, branch := range stree { if len(branch) > 1 { var next [][]string - if _, ok := m[branch[0]]; !ok { - next = make([][]string, 0) - } next = append(m[branch[0]], branch[1:]) m[branch[0]] = next } |