Move line into if

This commit is contained in:
RMidhunSuresh 2022-01-07 17:29:17 +05:30
parent c6484f1eac
commit 0a09a50ab9

View File

@ -230,8 +230,8 @@ export class Timeline {
const oldEntry = this._contextEntriesNotInTimeline.get(entry.id) const oldEntry = this._contextEntriesNotInTimeline.get(entry.id)
if (oldEntry) { if (oldEntry) {
Timeline._entryUpdater(oldEntry, entry); Timeline._entryUpdater(oldEntry, entry);
}
this._contextEntriesNotInTimeline.set(entry.id, entry); this._contextEntriesNotInTimeline.set(entry.id, entry);
}
// Since this entry changed, all dependent entries should be updated // Since this entry changed, all dependent entries should be updated
entry.contextForEntries?.forEach(e => this._updateEntry(e)); entry.contextForEntries?.forEach(e => this._updateEntry(e));
} catch (err) { } catch (err) {