mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 15:45:26 +00:00
Fixed lint errors
This commit is contained in:
parent
f85a421550
commit
6c4495c0d1
@ -82,9 +82,9 @@ func New(options *Options) (*Client, error) {
|
||||
configure = configure.MaxSize(options.CacheSize)
|
||||
cache := ccache.New(configure)
|
||||
|
||||
interactionsConfig := ccache.Configure()
|
||||
interactionsConfig = configure.MaxSize(defaultMaxInteractionsCount)
|
||||
interactionsCache := ccache.New(interactionsConfig)
|
||||
interactionsCfg := ccache.Configure()
|
||||
interactionsCfg = interactionsCfg.MaxSize(defaultMaxInteractionsCount)
|
||||
interactionsCache := ccache.New(interactionsCfg)
|
||||
|
||||
interactClient := &Client{
|
||||
interactsh: interactsh,
|
||||
@ -105,12 +105,10 @@ func New(options *Options) (*Client, error) {
|
||||
gotItem := interactClient.interactions.Get(interaction.UniqueID)
|
||||
if gotItem == nil {
|
||||
interactClient.interactions.Set(interaction.UniqueID, []*server.Interaction{interaction}, defaultInteractionDuration)
|
||||
} else {
|
||||
if items, ok := gotItem.Value().([]*server.Interaction); ok {
|
||||
} else if items, ok := gotItem.Value().([]*server.Interaction); ok {
|
||||
items = append(items, interaction)
|
||||
interactClient.interactions.Set(interaction.UniqueID, items, defaultInteractionDuration)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
request, ok := item.Value().(*RequestData)
|
||||
|
||||
@ -169,8 +169,7 @@ func (r *Request) executeAddress(actualAddress, address, input string, shouldUse
|
||||
}
|
||||
}
|
||||
callback(event)
|
||||
} else {
|
||||
if r.options.Interactsh != nil {
|
||||
} else if r.options.Interactsh != nil {
|
||||
r.options.Interactsh.RequestEvent(interactURL, &interactsh.RequestData{
|
||||
MakeResultFunc: r.MakeResultEvent,
|
||||
Event: event,
|
||||
@ -179,7 +178,6 @@ func (r *Request) executeAddress(actualAddress, address, input string, shouldUse
|
||||
ExtractFunc: r.Extract,
|
||||
})
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user