Skip to content

Commit

Permalink
Renames NewClient to New to avoid duplication
Browse files Browse the repository at this point in the history
So we can call `client.New` instead of `client.NewClient`

Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Sep 20, 2023
1 parent 4b9cfd9 commit ddbae60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/catalogmetadata/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/operator-framework/operator-controller/internal/catalogmetadata"
)

func NewClient(cl client.Client) *Client {
func New(cl client.Client) *Client {
return &Client{cl: cl}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/catalogmetadata/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestClient(t *testing.T) {
ctx := context.Background()
objs, expectedBundles := tt.fakeCatalog()

fakeCatalogClient := catalogClient.NewClient(
fakeCatalogClient := catalogClient.New(
fake.NewClientBuilder().WithScheme(scheme).WithObjects(objs...).Build(),
)

Expand Down

0 comments on commit ddbae60

Please sign in to comment.