diff options
author | Nick Thomas <nick@gitlab.com> | 2021-08-13 14:50:02 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2021-08-13 14:50:02 +0000 |
commit | 51e7ed1be98c7cdc65078b604e2c46cd551d3c2e (patch) | |
tree | 5e7981aa66506c40376f64527a4644507b2e2a12 /internal/gitlabnet | |
parent | fa9e9ad01c410fc47f751e7aef2202928ac1a3ee (diff) | |
parent | 160dcb064412e53a638c4329a60feadaafb1ab48 (diff) | |
download | gitlab-shell-51e7ed1be98c7cdc65078b604e2c46cd551d3c2e.tar.gz |
Merge branch 'update/newclientopts' into 'main'
refactor: update usage of NewHTTPClient to NewHTTPClientWithOpts
Closes #484
See merge request gitlab-org/gitlab-shell!507
Diffstat (limited to 'internal/gitlabnet')
-rw-r--r-- | internal/gitlabnet/client.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/gitlabnet/client.go b/internal/gitlabnet/client.go index c0b72c4..39c3320 100644 --- a/internal/gitlabnet/client.go +++ b/internal/gitlabnet/client.go @@ -15,7 +15,10 @@ var ( ) func GetClient(config *config.Config) (*client.GitlabNetClient, error) { - httpClient := config.HttpClient() + httpClient, err := config.HttpClient() + if err != nil { + return nil, err + } if httpClient == nil { return nil, fmt.Errorf("Unsupported protocol") |