Skip to content

Commit ca373eb

Browse files
authored
Merge pull request #174 from projectdiscovery/output-ext-fix
Keeping output file name as user provided
2 parents daf3239 + 7797853 commit ca373eb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

v2/pkg/runner/runner.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,6 @@ func (r *Runner) handleOutput() {
319319
// ports to the output file.
320320
if r.options.Output != "" {
321321
output = r.options.Output
322-
// If the output format is json, append .json
323-
// else append .txt
324-
if r.options.JSON && !strings.HasSuffix(output, ".json") {
325-
output += ".json"
326-
}
327322

328323
// create path if not existing
329324
outputFolder := filepath.Dir(output)

0 commit comments

Comments
 (0)