mirror of https://github.com/docker/cli.git
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>
This commit is contained in:
parent
542f80241e
commit
640305f33c
|
@ -195,6 +195,7 @@ func TestHandlePullSecret(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
t.Run(c.version, func(t *testing.T) {
|
||||
conv, err := NewStackConverter(c.version)
|
||||
assert.NilError(t, err)
|
||||
|
@ -222,6 +223,7 @@ func TestHandlePullPolicy(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
t.Run(c.version, func(t *testing.T) {
|
||||
conv, err := NewStackConverter(c.version)
|
||||
assert.NilError(t, err)
|
||||
|
@ -271,6 +273,7 @@ func TestHandleInternalServiceType(t *testing.T) {
|
|||
},
|
||||
}
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
res, err := fromComposeServiceConfig(composetypes.ServiceConfig{
|
||||
Name: "test",
|
||||
|
|
Loading…
Reference in New Issue