Add return nil when faults == 0
This commit is contained in:
parent
3e7654d459
commit
6c9beb9e87
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user