nit: remove useless goto

Because stebalien has allergies.
This commit is contained in:
Steven Allen 2021-07-12 21:46:18 -07:00
parent 60212c86cb
commit 04abd190ab

View File

@ -659,19 +659,15 @@ func (s *SplitStore) trackTxnRef(c cid.Cid) {
mark, err := s.txnProtect.Has(c) mark, err := s.txnProtect.Has(c)
if err != nil { if err != nil {
log.Warnf("error checking markset: %s", err) log.Warnf("error checking markset: %s", err)
goto track // track it anyways
} } else if mark {
if mark {
return return
} }
} }
track:
s.txnRefsMx.Lock() s.txnRefsMx.Lock()
s.txnRefs[c] = struct{}{} s.txnRefs[c] = struct{}{}
s.txnRefsMx.Unlock() s.txnRefsMx.Unlock()
return
} }
// transactionally protect a batch of references // transactionally protect a batch of references