Skip to content

single-argument-append

Default severity: warning

Calling the predeclared append function with only a slice argument returns that same slice unchanged. Assign or return the slice directly instead.

destination = append(source)
destination = source