mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
pks/plugins/pluginrpc-gen: fix unused value assign (wastedassign)
pkg/plugins/pluginrpc-gen/parser_test.go:80:2: assigned to arg, but reassigned without using the value (wastedassign)
arg = f.Args[0]
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -78,8 +78,8 @@ func TestParseWithMultipleFuncs(t *testing.T) {
|
||||
assertNum(t, 2, len(f.Args))
|
||||
assertNum(t, 2, len(f.Returns))
|
||||
arg = f.Args[0]
|
||||
assertName(t, "a", f.Args[0].Name)
|
||||
assertName(t, "string", f.Args[0].ArgType)
|
||||
assertName(t, "a", arg.Name)
|
||||
assertName(t, "string", arg.ArgType)
|
||||
arg = f.Args[1]
|
||||
assertName(t, "b", arg.Name)
|
||||
assertName(t, "string", arg.ArgType)
|
||||
|
||||
Reference in New Issue
Block a user