Skip to content

Commit

Permalink
Merge pull request #7 from inloco/incident-167
Browse files Browse the repository at this point in the history
Create client using connection base URL
  • Loading branch information
almirmcunhajr authored Jul 3, 2024
2 parents 019013b + 492a55b commit f82a1fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions azuredevops/taskagent/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ type ClientImpl struct {
}

func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error) {
client, err := connection.GetClientByResourceAreaId(ctx, ResourceAreaId)
if err != nil {
return nil, err
}
client := connection.GetClientByUrl(connection.BaseUrl)
return &ClientImpl{
Client: *client,
}, nil
Expand Down

0 comments on commit f82a1fc

Please sign in to comment.