Skip to content

Commit

Permalink
Do not report per-template empty results
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbua committed Jul 18, 2020
1 parent 0833e21 commit c161a38
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions v2/internal/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,22 +209,21 @@ func (r *Runner) RunEnumeration() {
results = httpResults
}
}

if !results {
if r.output != nil {
outputFile := r.output.Name()
r.output.Close()
os.Remove(outputFile)
}
gologger.Infof("No results found for template [%s]. Happy hacking!", template.ID)
}
case *workflows.Workflow:
workflow := t.(*workflows.Workflow)
r.ProcessWorkflowWithList(workflow)
default:
gologger.Errorf("Could not parse file '%s': %s\n", match, err)
}
}
if !results {
if r.output != nil {
outputFile := r.output.Name()
r.output.Close()
os.Remove(outputFile)
}
gologger.Infof("No results found. Happy hacking!")
}
return
}

Expand Down

0 comments on commit c161a38

Please sign in to comment.