libnetwork/endpoint_info.go:467:3: The copy of the 'for' variable "r" can be deleted (Go 1.22+) (copyloopvar)
r := r
^
libnetwork/firewall_linux_test.go:52:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
libnetwork/libnetwork_internal_test.go:403:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
libnetwork/libnetwork_linux_test.go:2045:3: The copy of the 'for' variable "i" can be deleted (Go 1.22+) (copyloopvar)
i := i
^
libnetwork/libnetwork_linux_test.go:2165:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -2042,7 +2042,6 @@ func TestParallel(t *testing.T) {
|
| 2042 | 2042 |
|
| 2043 | 2043 |
var eg errgroup.Group |
| 2044 | 2044 |
for i := first; i <= last; i++ {
|
| 2045 |
- i := i |
|
| 2046 | 2045 |
eg.Go(func() error { return pt.Do(t, i) })
|
| 2047 | 2046 |
} |
| 2048 | 2047 |
if err := eg.Wait(); err != nil {
|
| ... | ... |
@@ -2162,7 +2161,6 @@ func TestNullIpam(t *testing.T) {
|
| 2162 | 2162 |
} |
| 2163 | 2163 |
|
| 2164 | 2164 |
for _, tc := range tests {
|
| 2165 |
- tc := tc |
|
| 2166 | 2165 |
t.Run(tc.networkType, func(t *testing.T) {
|
| 2167 | 2166 |
_, err := controller.NewNetwork(tc.networkType, "tnet1-"+tc.networkType, "", |
| 2168 | 2167 |
libnetwork.NetworkOptionEnableIPv4(true), |