(2.14) [IMPROVED] Remove redundant error check in filestore
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
This commit is contained in:
+2
-4
@@ -9005,10 +9005,8 @@ func (fs *fileStore) loadLastLocked(subj string, sm *StoreMsg) (lsm *StoreMsg, e
|
||||
if ss.lastNeedsUpdate {
|
||||
// mb is already loaded into the cache so should be fast-ish.
|
||||
if err = mb.recalculateForSubj(subj, ss); err != nil {
|
||||
if err != nil {
|
||||
mb.mu.Unlock()
|
||||
return nil, err
|
||||
}
|
||||
mb.mu.Unlock()
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
l = ss.Last
|
||||
|
||||
Reference in New Issue
Block a user