Skip to content

Commit 4714c7a

Browse files
committed
PR feedback - error? to Error | undefined
1 parent 56ca0e1 commit 4714c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/core/transaction_runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class TransactionRunner<T> {
112112
}
113113
}
114114

115-
private isRetryableTransactionError(error?: Error): boolean {
115+
private isRetryableTransactionError(error: Error | undefined): boolean {
116116
if (error?.name === 'FirebaseError') {
117117
// In transactions, the backend will fail outdated reads with FAILED_PRECONDITION and
118118
// non-matching document versions with ABORTED. These errors should be retried.

0 commit comments

Comments
 (0)