From df9670c58d1229586fd119367fc34964a19b55c5 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 10 Jul 2021 16:38:40 +0300 Subject: [PATCH] fix lint --- blockstore/splitstore/splitstore.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index 16b922ab2..f089b3987 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -1154,7 +1154,9 @@ func (s *SplitStore) endTxnProtect() { } // release markset memory - s.txnProtect.Close() + if s.txnProtect != nil { + _ = s.txnProtect.Close() + } s.txnActive = false s.txnProtect = nil