mirror of https://github.com/daffainfo/nuclei.git
chore: fix pr comment
parent
8df46e1774
commit
2aade725b7
|
@ -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{
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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 != "" {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue