From 2aade725b71f05861a444d35ea42f47c1335df21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20L=C3=B3pez=20Mareque?= Date: Tue, 19 Oct 2021 17:17:45 +0200 Subject: [PATCH] chore: fix pr comment --- v2/pkg/reporting/exporters/es/elasticsearch.go | 2 +- v2/pkg/reporting/trackers/github/github.go | 2 +- v2/pkg/reporting/trackers/gitlab/gitlab.go | 2 +- v2/pkg/reporting/trackers/jira/jira.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v2/pkg/reporting/exporters/es/elasticsearch.go b/v2/pkg/reporting/exporters/es/elasticsearch.go index f6c69cf6b..784e587d0 100644 --- a/v2/pkg/reporting/exporters/es/elasticsearch.go +++ b/v2/pkg/reporting/exporters/es/elasticsearch.go @@ -52,7 +52,7 @@ func New(option *Options) (*Exporter, error) { var ei *Exporter err := validateOptions(option) if err != nil { - return nil, errors.New("could not parse config") + return nil, err } client := &http.Client{ diff --git a/v2/pkg/reporting/trackers/github/github.go b/v2/pkg/reporting/trackers/github/github.go index c1adbfb86..672f62ede 100644 --- a/v2/pkg/reporting/trackers/github/github.go +++ b/v2/pkg/reporting/trackers/github/github.go @@ -44,7 +44,7 @@ type Options struct { func New(options *Options) (*Integration, error) { err := validateOptions(options) if err != nil { - return nil, errors.Wrap(err, "could not parse config") + return nil, err } ctx := context.Background() ts := oauth2.StaticTokenSource( diff --git a/v2/pkg/reporting/trackers/gitlab/gitlab.go b/v2/pkg/reporting/trackers/gitlab/gitlab.go index fbce367b7..35922970b 100644 --- a/v2/pkg/reporting/trackers/gitlab/gitlab.go +++ b/v2/pkg/reporting/trackers/gitlab/gitlab.go @@ -39,7 +39,7 @@ type Options struct { func New(options *Options) (*Integration, error) { err := validateOptions(options) if err != nil { - return nil, errors.Wrap(err, "could not parse config") + return nil, err } gitlabOpts := []gitlab.ClientOptionFunc{} if options.BaseURL != "" { diff --git a/v2/pkg/reporting/trackers/jira/jira.go b/v2/pkg/reporting/trackers/jira/jira.go index d1552286e..3237e929b 100644 --- a/v2/pkg/reporting/trackers/jira/jira.go +++ b/v2/pkg/reporting/trackers/jira/jira.go @@ -48,7 +48,7 @@ type Options struct { func New(options *Options) (*Integration, error) { err := validateOptions(options) if err != nil { - return nil, errors.New("could not parse config") + return nil, err } username := options.Email if !options.Cloud {