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)
if err != nil {
log.Warnf("error checking markset: %s", err)
goto track
}
if mark {
// track it anyways
} else if mark {
return
}
}
track:
s.txnRefsMx.Lock()
s.txnRefs[c] = struct{}{}
s.txnRefsMx.Unlock()
return
}
// transactionally protect a batch of references