Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-codefresh committed Dec 17, 2024
1 parent a5359e4 commit 6bbadea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sources_server_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ func (c *sourceServerClient) sendRequest(method, url string, payload interface{}
}

fullURL, err := netUrl.JoinPath(c.clientConfig.BaseURL, url)
if err != nil {
return nil, fmt.Errorf("error joining path: %w", err)
}

req, err := http.NewRequest(method, fullURL, bytes.NewBuffer(requestBody))
if err != nil {
return nil, fmt.Errorf("error creating request: %w", err)
Expand Down

0 comments on commit 6bbadea

Please sign in to comment.