mirror of https://github.com/docker/cli.git
e2e/cli-plugins: Using the variable on range scope `args` in function literal (scopelint)
```
e2e/cli-plugins/flags_test.go:135:27: Using the variable on range scope `args` in function literal (scopelint)
res := icmd.RunCmd(run(args...))
^
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 1736662bea
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
42ad2446e0
commit
0cab2689a5
|
@ -131,6 +131,7 @@ func TestUnknownGlobal(t *testing.T) {
|
|||
"separate-val": {"--unknown", "foo", "helloworld"},
|
||||
"joined-val": {"--unknown=foo", "helloworld"},
|
||||
} {
|
||||
args := args
|
||||
t.Run(name, func(t *testing.T) {
|
||||
res := icmd.RunCmd(run(args...))
|
||||
res.Assert(t, icmd.Expected{
|
||||
|
|
Loading…
Reference in New Issue