mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Removing logging of git client errors as these are now returned in main.go
This commit is contained in:
1 parent
f89b8f2b29
commit
6fcf91e934
2 files changed
+1
-7
No files matched your search
@@ -41,9 +41,6 @@ func NewGithubClient(m manager.Manager) (*Github, error) {
|
|||||||
githubClient = github.NewClient(httpClient)
|
githubClient = github.NewClient(httpClient)
|
||||||
} else {
|
} else {
|
||||||
githubClient, err = github.NewEnterpriseClient(m.Opts.BaseURL, m.Opts.BaseURL, httpClient)
|
githubClient, err = github.NewEnterpriseClient(m.Opts.BaseURL, m.Opts.BaseURL, httpClient)
|
||||||
if err != nil {
|
|
||||||
log.Error(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return &Github{
|
return &Github{
|
||||||
|
|||||||
+1
-4
@@ -32,10 +32,7 @@ func NewGitlabClient(m manager.Manager) (*Gitlab, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if m.Opts.BaseURL != "" {
|
if m.Opts.BaseURL != "" {
|
||||||
err := gitlabClient.client.SetBaseURL(m.Opts.BaseURL)
|
err = gitlabClient.client.SetBaseURL(m.Opts.BaseURL)
|
||||||
if err != nil {
|
|
||||||
log.Error(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return gitlabClient, err
|
return gitlabClient, err
|
||||||
|
|||||||
Reference in new issue
Block a user