From 6fcf91e9343cfc03008a343acd2cebfdfc7ab486 Mon Sep 17 00:00:00 2001 From: Peter Gallagher Date: Thu, 5 Dec 2019 15:22:18 +0000 Subject: [PATCH] Removing logging of git client errors as these are now returned in main.go --- hosts/github.go | 3 --- hosts/gitlab.go | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/hosts/github.go b/hosts/github.go index ef6d0a4d..a42b7134 100644 --- a/hosts/github.go +++ b/hosts/github.go @@ -41,9 +41,6 @@ func NewGithubClient(m manager.Manager) (*Github, error) { githubClient = github.NewClient(httpClient) } else { githubClient, err = github.NewEnterpriseClient(m.Opts.BaseURL, m.Opts.BaseURL, httpClient) - if err != nil { - log.Error(err) - } } return &Github{ diff --git a/hosts/gitlab.go b/hosts/gitlab.go index d1da52fc..8762a6aa 100644 --- a/hosts/gitlab.go +++ b/hosts/gitlab.go @@ -32,10 +32,7 @@ func NewGitlabClient(m manager.Manager) (*Gitlab, error) { } if m.Opts.BaseURL != "" { - err := gitlabClient.client.SetBaseURL(m.Opts.BaseURL) - if err != nil { - log.Error(err) - } + err = gitlabClient.client.SetBaseURL(m.Opts.BaseURL) } return gitlabClient, err