diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-13 13:51:21 +0000 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-13 13:51:21 +0000 |
commit | 160dcb064412e53a638c4329a60feadaafb1ab48 (patch) | |
tree | df8c4dd3134cc1905043b8d62c4b1705dddd7bc6 /internal/gitlabnet/client.go | |
parent | 8a1d584de771b3267374397cc99c019de1c4500c (diff) | |
download | gitlab-shell-160dcb064412e53a638c4329a60feadaafb1ab48.tar.gz |
refactor: change httpclient to return an error
Diffstat (limited to 'internal/gitlabnet/client.go')
-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") |