mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-24 17:35:01 +01:00
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:
parent
39f8ff62f0
commit
d02d7e5e1d
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user