nit: remove useless goto
Because stebalien has allergies.
This commit is contained in:
parent
60212c86cb
commit
04abd190ab
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user