mvcc: go style err check (#11419)

This commit is contained in:
sun 2019-12-05 10:46:17 +08:00 committed by Xiang Li
parent d4d7ad3908
commit c5887cdc49

View File

@ -295,7 +295,7 @@ func (s *store) compact(trace *traceutil.Trace, rev int64) (<-chan struct{}, err
func (s *store) compactLockfree(rev int64) (<-chan struct{}, error) {
ch, err := s.updateCompactRev(rev)
if nil != err {
if err != nil {
return ch, err
}