Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jul 10, 2021
1 parent 0c5e336 commit df9670c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blockstore/splitstore/splitstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df9670c

Please sign in to comment.