Skip to content

Commit 6c9beb9

Browse files
author
chunqizhi
committedJul 5, 2020
Add return nil when faults == 0
1 parent 3e7654d commit 6c9beb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎cmd/lotus-storage-miner/proving.go

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ var provingFaultsCmd = &cli.Command{
7373
}
7474
if len(faults) == 0 {
7575
fmt.Println("no faulty sectors")
76+
return nil
7677
}
7778
head, err := api.ChainHead(ctx)
7879
if err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.