Merge pull request #2268 from chunqizhi/zcq02
Add return nil when faults == 0
This commit is contained in:
commit
2f3fc31f11
@ -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