mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
perf: 清理无用函数
This commit is contained in:
parent
1d6f411677
commit
a518e80185
@ -67,18 +67,6 @@ func InitOutput() error {
|
|||||||
return fmt.Errorf(GetText("output_create_dir_failed", err))
|
return fmt.Errorf(GetText("output_create_dir_failed", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
if ApiAddr != "" {
|
|
||||||
OutputFormat = "csv"
|
|
||||||
Outputfile = filepath.Join(dir, "fscanapi.csv")
|
|
||||||
Num = 0
|
|
||||||
End = 0
|
|
||||||
if _, err := os.Stat(Outputfile); err == nil {
|
|
||||||
if err := os.Remove(Outputfile); err != nil {
|
|
||||||
return fmt.Errorf(GetText("output_file_remove_failed", err))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
manager := &OutputManager{
|
manager := &OutputManager{
|
||||||
outputPath: Outputfile,
|
outputPath: Outputfile,
|
||||||
outputFormat: OutputFormat,
|
outputFormat: OutputFormat,
|
||||||
|
Loading…
Reference in New Issue
Block a user