From 20616f598348fa28f989b823e521bd54486b753e Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 27 Oct 2021 12:38:55 +0530 Subject: [PATCH] Rename variable Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/TimelineViewModel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/timeline/TimelineViewModel.js b/src/domain/session/room/timeline/TimelineViewModel.js index 33c9925f..c261760c 100644 --- a/src/domain/session/room/timeline/TimelineViewModel.js +++ b/src/domain/session/room/timeline/TimelineViewModel.js @@ -51,15 +51,15 @@ export class TimelineViewModel extends ViewModel { async watchForGapFill(gapPromise, gapTile) { let hasSeenUpdate = false; - const func = (idx, tile) => { + const checkForUpdate = (idx, tile) => { if (tile.shape !== "gap") { hasSeenUpdate = true; } } const subscription = { - onAdd: (idx, tile) => func(idx, tile), - onUpdate: (idx, tile) => func(idx, tile), - onRemove: (idx, tile) => func(idx, tile) + onAdd: (idx, tile) => checkForUpdate(idx, tile), + onUpdate: (idx, tile) => checkForUpdate(idx, tile), + onRemove: (idx, tile) => checkForUpdate(idx, tile) }; this.tiles.subscribe(subscription); const gapResult = await gapPromise;