mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 20:15:24 +00:00
chore: fix pr comment
This commit is contained in:
parent
8df46e1774
commit
2aade725b7
@ -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{
|
||||||
|
|||||||
@ -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(
|
||||||
|
|||||||
@ -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 != "" {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user