From 67dc7523d55ab1a5956a10d91725b40d5198a292 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Fri, 10 Sep 2021 15:09:37 +0200 Subject: [PATCH] fixup --- cmd/lotus-miner/market.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-miner/market.go b/cmd/lotus-miner/market.go index 702b5fe85..d624b51e1 100644 --- a/cmd/lotus-miner/market.go +++ b/cmd/lotus-miner/market.go @@ -974,7 +974,10 @@ func listDealsWithJSON(cctx *cli.Context) error { } } - w.Encode(val) + err := w.Encode(val) + if err != nil { + return err + } } return nil