From 96245c3cfabe82aeab6b56c6ab375cb971113e71 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Fri, 2 Jul 2021 12:02:36 +0200 Subject: [PATCH] lint --- node/enable_libp2p.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/node/enable_libp2p.go b/node/enable_libp2p.go index d3ccbe3a2..c091fee92 100644 --- a/node/enable_libp2p.go +++ b/node/enable_libp2p.go @@ -9,16 +9,16 @@ func ApplyIfEnableLibP2P(r repo.Repo, opts ...Option) Option { return ApplyIf(func(settings *Settings) bool { lr, err := r.Lock(settings.nodeType) if err != nil { - // log error + // TODO: log error return false } c, err := lr.Config() if err != nil { - // log error + // TODO: log error return false } - defer lr.Close() + defer lr.Close() //nolint:errcheck switch settings.nodeType { case repo.FullNode: @@ -26,14 +26,14 @@ func ApplyIfEnableLibP2P(r repo.Repo, opts ...Option) Option { case repo.StorageMiner: cfg, ok := c.(*config.StorageMiner) if !ok { - // log error + // TODO: log error return false } enableLibP2P := cfg.Subsystems.EnableStorageMarket return enableLibP2P default: - // log error + // TODO: log error return false } }, opts...)