Skip to content

Commit 8fc7be2

Browse files
authored
Remove unused function parameter (#344)
1 parent 2414b55 commit 8fc7be2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firestore/test.solution-counters.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createCounter(ref, num_shards) {
2222
// [END create_counter]
2323

2424
// [START increment_counter]
25-
functionincrementCounter(db,ref,num_shards){
25+
functionincrementCounter(ref,num_shards){
2626
// Select a shard of the counter at random
2727
constshard_id=Math.floor(Math.random()*num_shards).toString();
2828
constshard_ref=ref.collection('shards').doc(shard_id);
@@ -67,15 +67,15 @@ describe("firestore-solution-counters", () => {
6767
// Create a counter, then increment it
6868
constref=db.collection('counters').doc();
6969
returncreateCounter(ref,10).then(()=>{
70-
returnincrementCounter(db,ref,10);
70+
returnincrementCounter(ref,10);
7171
});
7272
});
7373

7474
it("should get the count of a counter",()=>{
7575
// Create a counter, increment it, then get the count
7676
constref=db.collection('counters').doc();
7777
returncreateCounter(ref,10).then(()=>{
78-
returnincrementCounter(db,ref,10);
78+
returnincrementCounter(ref,10);
7979
}).then(()=>{
8080
returngetCount(ref);
8181
});

0 commit comments

Comments
 (0)
close