Skip to content

Commit

Permalink
fix(src): changed client struct field type
Browse files Browse the repository at this point in the history
Signed-off-by: manhtukhang <[email protected]>
  • Loading branch information
manhtukhang committed Apr 8, 2024
1 parent b2d8dfc commit 3dd4691
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type nxrClient struct {

// newClient creates a new client to access Nexus Repository
// and exposes it for any secrets or roles to use.
//
//nolint:unused
func newClient(config *adminConfig) (*nxrClient, error) {
if config == nil {
return nil, errors.New("client configuration was nil")
Expand All @@ -35,7 +37,7 @@ func newClient(config *adminConfig) (*nxrClient, error) {
Username: config.Username,
Password: config.Password,
Insecure: config.Insecure,
Timeout: config.Timeout,
Timeout: &config.Timeout,
})

return &nxrClient{c}, nil
Expand Down

0 comments on commit 3dd4691

Please sign in to comment.