diff --git a/v2/internal/runner/processor.go b/v2/internal/runner/processor.go index a00993b88..f442c6237 100644 --- a/v2/internal/runner/processor.go +++ b/v2/internal/runner/processor.go @@ -32,6 +32,9 @@ func (r *Runner) processTemplateWithList(template *templates.Template) bool { // processTemplateWithList process a template on the URL list func (r *Runner) processWorkflowWithList(template *templates.Template) bool { + if r.options.Workflows { + return false + } results := &atomic.Bool{} wg := sizedwaitgroup.New(r.options.BulkSize) diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index 762e0fa72..f5900edef 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -302,7 +302,7 @@ func (r *Runner) RunEnumeration() { if len(template.Workflows) > 0 { results.CAS(false, r.processWorkflowWithList(template)) - } else if !r.options.Workflows { + } else { results.CAS(false, r.processTemplateWithList(template)) } }(t)