Add return nil when faults == 0

This commit is contained in:
chunqizhi 2020-07-05 09:17:10 +08:00
parent 3e7654d459
commit 6c9beb9e87

View File

@ -73,6 +73,7 @@ var provingFaultsCmd = &cli.Command{
}
if len(faults) == 0 {
fmt.Println("no faulty sectors")
return nil
}
head, err := api.ChainHead(ctx)
if err != nil {