From 63e2caae81c168a0cf0f239ed3927c154c2b1150 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 22 Jun 2021 15:06:44 -0700 Subject: [PATCH] lint(lotus-sim): handle error --- cmd/lotus-sim/simulation/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-sim/simulation/node.go b/cmd/lotus-sim/simulation/node.go index acd63955d..5b8bf2bf9 100644 --- a/cmd/lotus-sim/simulation/node.go +++ b/cmd/lotus-sim/simulation/node.go @@ -46,7 +46,7 @@ func NewNode(ctx context.Context, r repo.Repo) (nd *Node, _err error) { } defer func() { if _err != nil { - lr.Close() + _ = lr.Close() } }()