Skip to content

Commit 3cd0f50

Browse files
Fix lint
1 parent 8d7bb00 commit 3cd0f50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/database/src/core/Repo.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ export class Repo {
750750

751751
const error = new Error(message);
752752

753+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
753754
(error as any).code = code;
754755
callback(error);
755756
}
@@ -853,6 +854,7 @@ export class Repo {
853854
newVal !== null &&
854855
contains(newVal, '.priority')
855856
) {
857+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
856858
priorityForNode = safeGet(newVal as any, '.priority');
857859
assert(
858860
isValidPriority(priorityForNode),
@@ -865,7 +867,6 @@ export class Repo {
865867
ChildrenNode.EMPTY_NODE;
866868
priorityForNode = currentNode.getPriority().val();
867869
}
868-
priorityForNode /** @type {null|number|string} */ = priorityForNode;
869870

870871
const serverValues = this.generateServerValues();
871872
const newNodeUnresolved = nodeFromJSON(newVal, priorityForNode);
@@ -1109,7 +1110,7 @@ export class Repo {
11091110
this.serverSyncTree_.ackUserWrite(transaction.currentWriteId, true)
11101111
);
11111112
} else if (transaction.status === TransactionStatus.RUN) {
1112-
if (transaction.retryCount >= MAX_TRANSACTION_RETRIES_) {
1113+
if (transaction.retryCount >= MAX_TRANSACTION_RETRIES) {
11131114
abortTransaction = true;
11141115
abortReason = 'maxretry';
11151116
events = events.concat(

0 commit comments

Comments
 (0)