Skip to content

Commit e58de8e

Browse files
authored
Remove unused parameter for clarity in example (#93)
Co-authored-by: Aaron Hong <[email protected]>
1 parent 13d7afd commit e58de8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firestore/main/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,11 +1019,11 @@ function deleteCollection(db, collectionPath, batchSize) {
10191019
let query = collectionRef.orderBy('__name__').limit(batchSize);
10201020

10211021
return new Promise((resolve, reject) => {
1022-
deleteQueryBatch(db, query, batchSize, resolve, reject);
1022+
deleteQueryBatch(db, query, resolve, reject);
10231023
});
10241024
}
10251025

1026-
function deleteQueryBatch(db, query, batchSize, resolve, reject) {
1026+
function deleteQueryBatch(db, query, resolve, reject) {
10271027
query.get()
10281028
.then((snapshot) => {
10291029
// When there are no documents left, we are done
@@ -1049,7 +1049,7 @@ function deleteQueryBatch(db, query, batchSize, resolve, reject) {
10491049
// Recurse on the next process tick, to avoid
10501050
// exploding the stack.
10511051
process.nextTick(() => {
1052-
deleteQueryBatch(db, query, batchSize, resolve, reject);
1052+
deleteQueryBatch(db, query, resolve, reject);
10531053
});
10541054
})
10551055
.catch(reject);

0 commit comments

Comments
 (0)