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:
parent
ef599aa8fc
commit
a8d631177f
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue