Skip to content

Commit 58ddf62

Browse files
committed
Remove unused code
1 parent 9ac7102 commit 58ddf62

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

internal/args/args_test.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,14 @@ func TestInputsToArgs(t *testing.T) {
6767
inputs = append(inputs, p)
6868
}
6969

70-
args, addContext, err := InputsToArgs(converter.DefaultConverter, reflect.ValueOf(tt.args.fn), inputs)
70+
_, addContext, err := InputsToArgs(converter.DefaultConverter, reflect.ValueOf(tt.args.fn), inputs)
7171
if (err != nil) != tt.wantErr {
7272
t.Errorf("InputsToArgs() error = %v, wantErr %v", err, tt.wantErr)
7373
return
7474
}
7575
if tt.wantErr {
7676
require.EqualError(t, err, tt.err)
7777
require.Equal(t, tt.addContext, addContext)
78-
} else {
79-
if addContext {
80-
// Skip the first argument, it will be filled with the context later
81-
args = args[1:]
82-
}
83-
84-
argValues := make([]interface{}, 0)
85-
for _, arg := range args {
86-
argValues = append(argValues, arg.Interface())
87-
}
8878
}
8979
})
9080
}

0 commit comments

Comments
 (0)