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
1 changed files with 1 additions and 2 deletions

View File

@ -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
}
}