Skip to content

Commit 6063435

Browse files
committed
Cleanup
1 parent b66b57a commit 6063435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/client/interceptor/intercept.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ type (
6262
)
6363

6464
// NewClient returns a new interceptor client that calls the functions in fns instead of the underlying client's methods, if they are not nil.
65-
func NewClient(client client.WithWatch, fns Fns) client.WithWatch {
66-
return interceptor{client: client, fns: fns}
65+
func NewClient(interceptedClient client.WithWatch, fns Fns) client.WithWatch {
66+
return interceptor{client: interceptedClient, fns: fns}
6767
}
6868

6969
// NewSubResourceClient returns a SubResourceClient that intercepts calls to the provided client with the provided functions.
70-
func NewSubResourceClient(client client.SubResourceClient, fns SubResourceFns) client.SubResourceClient {
71-
return subResourceInterceptor{client: client, fns: fns}
70+
func NewSubResourceClient(interceptedClient client.SubResourceClient, fns SubResourceFns) client.SubResourceClient {
71+
return subResourceInterceptor{client: interceptedClient, fns: fns}
7272
}
7373

7474
type interceptor struct {

0 commit comments

Comments
 (0)