Skip to content

Commit

Permalink
Simplified while condition in middleware GC. (#2365)
Browse files Browse the repository at this point in the history
Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>
  • Loading branch information
MillenniumFalconMechanic and tihuan committed Aug 18, 2021
1 parent 36e277b commit 65af86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/annoMatrix/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _doGC(store: MiddlewareAPI): void {
undoableStack.map((m: AnnoMatrix) => [m, { isHot: false }])
);
let am = currentAnnoMatrix;
while (am && am.isView) {
while (am?.isView) {
allAnnoMatrices.set(am, { isHot: true });
am = am.viewOf;
}
Expand Down

0 comments on commit 65af86f

Please sign in to comment.