Merge pull request #9021 from overleaf/bg-manual-decaff

manual decaff cleanup of __guard__

GitOrigin-RevId: 2e30b7fdbf03c79c22f7a99cef9462157bb4cf7e
This commit is contained in:
Brian Gough 2022-07-28 09:23:57 +01:00 committed by Copybot
parent 8960e56e20
commit 0e6974d9e1

View file

@ -50,7 +50,7 @@ module.exports = UpdatesManager = {
const op = rawUpdates[i]
if (i > 0) {
const thisVersion = op != null ? op.v : undefined
const prevVersion = __guard__(rawUpdates[i - 1], x => x.v)
const prevVersion = rawUpdates[i - 1]?.v
if (!(prevVersion < thisVersion)) {
logger.error(
{