lint: merge declaration and assignment (S1021)

Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Moritz Poldrack 2022-07-29 21:50:42 +02:00 committed by Robin Jarry
parent ef599aa8fc
commit a8d631177f

View file

@ -374,8 +374,7 @@ func buildTree(node *types.Thread, stree [][]string, defaultUid uint32) {
m := make(map[string][][]string) m := make(map[string][][]string)
for _, branch := range stree { for _, branch := range stree {
if len(branch) > 1 { 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 m[branch[0]] = next
} }
} }