Skip to content

Commit 07ef6a3

Browse files
committed
chore: remove name for LocalStubFnInfo
1 parent 7af0b0b commit 07ef6a3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

internal/registry/registry.go

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
// LocalStubFnInfo is the information passed to LocalStubFn.
1111
type LocalStubFnInfo struct {
1212
Impl any
13-
Name string
1413
Interceptor interceptor.Interceptor
1514
}
1615

registry.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,20 @@ func (k *Kod) getIntf(ctx context.Context, t reflect.Type) (any, error) {
4949
return intf, nil
5050
}
5151

52-
comp, err := k.get(ctx, reg)
52+
impl, err := k.get(ctx, reg)
5353
if err != nil {
5454
return nil, err
5555
}
5656

5757
interceptors := k.opts.interceptors
58-
if h, ok := comp.(interface {
58+
if h, ok := impl.(interface {
5959
Interceptors() []interceptor.Interceptor
6060
}); ok {
6161
interceptors = append(interceptors, h.Interceptors()...)
6262
}
6363

6464
info := &LocalStubFnInfo{
65-
Name: reg.Name,
66-
Impl: comp,
65+
Impl: impl,
6766
Interceptor: interceptor.Chain(interceptors),
6867
}
6968

0 commit comments

Comments
 (0)