cli/command/stack/kubernetes: Using the variable on range scope `c` in function literal (scopelint)

```
cli/command/stack/kubernetes/convert_test.go:199:35: Using the variable on range scope `c` in function literal (scopelint)
			conv, err := NewStackConverter(c.version)
			                               ^
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 640305f33c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-10-29 14:44:09 +01:00
parent b320feff9b
commit e70edc3576
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,7 @@ func TestHandlePullSecret(t *testing.T) {
} }
for _, c := range cases { for _, c := range cases {
c := c
t.Run(c.version, func(t *testing.T) { t.Run(c.version, func(t *testing.T) {
conv, err := NewStackConverter(c.version) conv, err := NewStackConverter(c.version)
assert.NilError(t, err) assert.NilError(t, err)
@ -222,6 +223,7 @@ func TestHandlePullPolicy(t *testing.T) {
} }
for _, c := range cases { for _, c := range cases {
c := c
t.Run(c.version, func(t *testing.T) { t.Run(c.version, func(t *testing.T) {
conv, err := NewStackConverter(c.version) conv, err := NewStackConverter(c.version)
assert.NilError(t, err) assert.NilError(t, err)
@ -271,6 +273,7 @@ func TestHandleInternalServiceType(t *testing.T) {
}, },
} }
for _, c := range cases { for _, c := range cases {
c := c
t.Run(c.name, func(t *testing.T) { t.Run(c.name, func(t *testing.T) {
res, err := fromComposeServiceConfig(composetypes.ServiceConfig{ res, err := fromComposeServiceConfig(composetypes.ServiceConfig{
Name: "test", Name: "test",