chore: lint v2 (#24118)
This commit is contained in:
@@ -76,10 +76,8 @@ func TestValueCodec[T any](t *testing.T, encoder codec.ValueCodec[T], value T) {
|
||||
// it in order to make the type known by the MockValueCodec.
|
||||
func MockValueCodec[T any]() codec.ValueCodec[T] {
|
||||
typ := reflect.ValueOf(new(T)).Elem().Type()
|
||||
isInterface := false
|
||||
if typ.Kind() == reflect.Interface {
|
||||
isInterface = true
|
||||
}
|
||||
isInterface := typ.Kind() == reflect.Interface
|
||||
|
||||
return &mockValueCodec[T]{
|
||||
isInterface: isInterface,
|
||||
seenTypes: map[string]reflect.Type{},
|
||||
|
||||
Reference in New Issue
Block a user