Skip to content

Commit 8f5c459

Browse files
authored
Merge pull request #346 from yuwenma/cleanup
remove dup imports
2 parents cc2f85e + ddeb89e commit 8f5c459

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/patterns/declarative/watch.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
"k8s.io/apimachinery/pkg/runtime/schema"
2828
"k8s.io/client-go/dynamic"
2929
"k8s.io/client-go/rest"
30-
restclient "k8s.io/client-go/rest"
3130
ctrl "sigs.k8s.io/controller-runtime"
3231
"sigs.k8s.io/controller-runtime/pkg/controller"
3332
"sigs.k8s.io/controller-runtime/pkg/handler"
@@ -101,7 +100,7 @@ func WatchChildren(options WatchChildrenOptions) error {
101100
if options.Manager != nil {
102101
restMapper = options.Manager.GetRESTMapper()
103102
} else {
104-
client, err := restclient.HTTPClientFor(options.RESTConfig)
103+
client, err := rest.HTTPClientFor(options.RESTConfig)
105104
if err != nil {
106105
return err
107106
}

0 commit comments

Comments
 (0)