chore: fix pr comment

dev
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
err := validateOptions(option)
if err != nil {
return nil, errors.New("could not parse config")
return nil, err
}
client := &http.Client{

View File

@ -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(

View File

@ -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 != "" {

View File

@ -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 {