Skip to content

Commit b4c6eb6

Browse files
committed
Addressed comments
1 parent b94c8a8 commit b4c6eb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/database/src/core/SyncTree.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ export function syncTreeApplyTaggedListenComplete(
318318
*
319319
* @param eventRegistration - If null, all callbacks are removed.
320320
* @param cancelError - If a cancelError is provided, appropriate cancel events will be returned.
321+
* @param skipListenerDedup - When performing a `get()`, we don't add any new listeners, so no
322+
* deduping needs to take place. This flag allows toggling of that behavior
321323
* @returns Cancel events, if cancelError was provided.
322324
*/
323325
export function syncTreeRemoveEventRegistration(
@@ -392,9 +394,8 @@ export function syncTreeRemoveEventRegistration(
392394
listener.onComplete
393395
);
394396
}
395-
} else {
396-
// There's nothing below us, so nothing we need to start listening on
397397
}
398+
// Otherwise there's nothing below us, so nothing we need to start listening on
398399
}
399400
// If we removed anything and we're not covered by a higher up listen, we need to stop listening on this query
400401
// The above block has us covered in terms of making sure we're set up on listens lower in the tree.

0 commit comments

Comments
 (0)