address updated golangci-lint errors: S1011 (gosimple)

should replace loop with `copy.outs[level] = append(copy.outs[level], os.outs[level]...)` (gosimple)
This commit is contained in:
Christian Schwarz 2023-09-10 10:49:24 +00:00
parent 39f8ff62f0
commit d02d7e5e1d

View File

@ -150,9 +150,7 @@ func NewOutlets() *Outlets {
func (os *Outlets) DeepCopy() (copy *Outlets) { func (os *Outlets) DeepCopy() (copy *Outlets) {
copy = NewOutlets() copy = NewOutlets()
for level := range os.outs { for level := range os.outs {
for i := range os.outs[level] { copy.outs[level] = append(copy.outs[level], os.outs[level]...)
copy.outs[level] = append(copy.outs[level], os.outs[level][i])
}
} }
return copy return copy
} }