From 6c9beb9e879c1ba15434070ae7478b989f9b9b53 Mon Sep 17 00:00:00 2001 From: chunqizhi <1558763837@qq.com> Date: Sun, 5 Jul 2020 09:17:10 +0800 Subject: [PATCH] Add return nil when faults == 0 --- cmd/lotus-storage-miner/proving.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/lotus-storage-miner/proving.go b/cmd/lotus-storage-miner/proving.go index d96bd39f8..4b10b5b0e 100644 --- a/cmd/lotus-storage-miner/proving.go +++ b/cmd/lotus-storage-miner/proving.go @@ -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 {