Skip to content

Commit cdb99fa

Browse files
authored
Renames NewClient to New to avoid duplication (#422)
So we can call `client.New` instead of `client.NewClient` Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
1 parent 4b9cfd9 commit cdb99fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/catalogmetadata/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/operator-framework/operator-controller/internal/catalogmetadata"
1313
)
1414

15-
func NewClient(cl client.Client) *Client {
15+
func New(cl client.Client) *Client {
1616
return &Client{cl: cl}
1717
}
1818

internal/catalogmetadata/client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func TestClient(t *testing.T) {
111111
ctx := context.Background()
112112
objs, expectedBundles := tt.fakeCatalog()
113113

114-
fakeCatalogClient := catalogClient.NewClient(
114+
fakeCatalogClient := catalogClient.New(
115115
fake.NewClientBuilder().WithScheme(scheme).WithObjects(objs...).Build(),
116116
)
117117

0 commit comments

Comments
 (0)