Skip to content

Commit 2edc31c

Browse files
Fix indentation of transaction web sample.
1 parent 9162f64 commit 2edc31c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firestore/test.firestore.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ describe("firestore", () => {
427427
return transaction.get(sfDocRef).then(function(sfDoc) {
428428
var newPopulation = sfDoc.data().population + 1;
429429
if (newPopulation <= 1000000) {
430-
transaction.update(sfDocRef, { population: newPopulation });
431-
return newPopulation;
430+
transaction.update(sfDocRef, { population: newPopulation });
431+
return newPopulation;
432432
} else {
433-
return Promise.reject("Sorry! Population is too big.");
433+
return Promise.reject("Sorry! Population is too big.");
434434
}
435435
});
436436
}).then(function(newPopulation) {

0 commit comments

Comments
 (0)