pulumi/pkg/testing/integration
Abhinav Gupta 65194ecdf7
pkg: Fix unnecessary appends
Removes unnecessary appends in pkg.
There were two instances:

- append into a slice that's never used again
- append with nothing to append (`append([]{foo}) == []{foo}`)

Issue found by staticcheck:

```
testing/integration/program.go:2190:15: SA4021: x = append(y) is equivalent to x = y (staticcheck)
testing/integration/program.go:2192:15: SA4021: x = append(y) is equivalent to x = y (staticcheck)
codegen/pcl/utilities.go:158:11: SA4010: this result of append is never used, except maybe in other appends (staticcheck)
```

Refs #11808
2023-01-13 12:27:54 -08:00
..
command.go Don't disable ambiant providers during tests (#9404) 2022-04-15 11:14:47 +02:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
program.go pkg: Fix unnecessary appends 2023-01-13 12:27:54 -08:00
program_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
pulumi.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
s3reporter.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
util.go gosimple: Simplify loops 2023-01-12 09:55:34 -08:00