Skip to content

Commit

Permalink
updated: change method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Sep 2, 2022
1 parent 9827fb9 commit 8851a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scan/scanner.go
Expand Up @@ -261,7 +261,7 @@ func (*Scanner) Output(writer io.Writer, res []Result) error {
return nil
}

func (*Scanner) SaveFile(writer io.Writer, res []ResultElement) error {
func (*Scanner) SaveAs(writer io.Writer, res []ResultElement) error {
bytes, err := json.Marshal(res)
if err != nil {
return err
Expand Down Expand Up @@ -299,7 +299,7 @@ func SaveFile(out string, scanner *Scanner, res []ResultElement) {
os.Exit(1)
} else {
defer file.Close()
if err := scanner.SaveFile(file, res); err != nil {
if err := scanner.SaveAs(file, res); err != nil {
log.Warn(err)
os.Exit(1)
}
Expand Down

0 comments on commit 8851a85

Please sign in to comment.