chore: fix pr comment

This commit is contained in:
Pedro López Mareque 2021-10-19 17:17:45 +02:00
parent 8df46e1774
commit 2aade725b7
4 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ func New(option *Options) (*Exporter, error) {
var ei *Exporter var ei *Exporter
err := validateOptions(option) err := validateOptions(option)
if err != nil { if err != nil {
return nil, errors.New("could not parse config") return nil, err
} }
client := &http.Client{ client := &http.Client{

View File

@ -44,7 +44,7 @@ type Options struct {
func New(options *Options) (*Integration, error) { func New(options *Options) (*Integration, error) {
err := validateOptions(options) err := validateOptions(options)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "could not parse config") return nil, err
} }
ctx := context.Background() ctx := context.Background()
ts := oauth2.StaticTokenSource( ts := oauth2.StaticTokenSource(

View File

@ -39,7 +39,7 @@ type Options struct {
func New(options *Options) (*Integration, error) { func New(options *Options) (*Integration, error) {
err := validateOptions(options) err := validateOptions(options)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "could not parse config") return nil, err
} }
gitlabOpts := []gitlab.ClientOptionFunc{} gitlabOpts := []gitlab.ClientOptionFunc{}
if options.BaseURL != "" { if options.BaseURL != "" {

View File

@ -48,7 +48,7 @@ type Options struct {
func New(options *Options) (*Integration, error) { func New(options *Options) (*Integration, error) {
err := validateOptions(options) err := validateOptions(options)
if err != nil { if err != nil {
return nil, errors.New("could not parse config") return nil, err
} }
username := options.Email username := options.Email
if !options.Cloud { if !options.Cloud {