(2.14) [IMPROVED] Remove redundant error check in filestore

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
This commit is contained in:
Maurice van Veen
2026-06-02 09:17:04 +02:00
parent 4cec8d2ff7
commit 595832db00
+2 -4
View File
@@ -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