Skip to content

Commit

Permalink
remove old result file
Browse files Browse the repository at this point in the history
  • Loading branch information
vinllen committed Sep 26, 2019
1 parent 95809fe commit 8d65ae7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/full_check/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ func main() {
common.Logger.Infof("filter list enabled: %v", filterList)
}

// remove result file if has
if len(conf.Opts.ResultFile) > 0 {
os.Remove(conf.Opts.ResultFile)
}

fullCheckParameter := checker.FullCheckParameter{
SourceHost: client.RedisHost{
Addr: sourceAddressList,
Expand Down

0 comments on commit 8d65ae7

Please sign in to comment.