We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9162f64 commit 2edc31cCopy full SHA for 2edc31c
firestore/test.firestore.js
@@ -427,10 +427,10 @@ describe("firestore", () => {
427
return transaction.get(sfDocRef).then(function(sfDoc) {
428
var newPopulation = sfDoc.data().population + 1;
429
if (newPopulation <= 1000000) {
430
- transaction.update(sfDocRef, { population: newPopulation });
431
- return newPopulation;
+ transaction.update(sfDocRef, { population: newPopulation });
+ return newPopulation;
432
} else {
433
- return Promise.reject("Sorry! Population is too big.");
+ return Promise.reject("Sorry! Population is too big.");
434
}
435
});
436
}).then(function(newPopulation) {
0 commit comments