Skip to content

Commit 2597fbd

Browse files
Reformat some comments
1 parent 77d3b81 commit 2597fbd

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

packages/firebase_snippets_app/lib/snippets/firestore.dart

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,9 @@ class FirestoreSnippets extends DocSnippet {
297297
}
298298

299299
void transactions_passingInformationOutOfTransactions() {
300-
// [START transactions_passing_information_out_of_transactions]
301-
302300
// TODO: ewindmill@ - either the above example (using asnyc) or this example
303301
// using (then) is "more correct". Figure out which one.
302+
// [START transactions_passing_information_out_of_transactions]
304303
final sfDocRef = db.collection("cities").doc("SF");
305304
db.runTransaction((transaction) {
306305
return transaction.get(sfDocRef).then((sfDoc) {
@@ -317,18 +316,6 @@ class FirestoreSnippets extends DocSnippet {
317316

318317
void transactions_batchedWrites() {
319318
// [START transactions_batched_writes]
320-
/*
321-
322-
323-
324-
325-
326-
327-
// Commit the batch
328-
batch.commit().then(() => {
329-
// ...
330-
});
331-
*/
332319
// Get a new write batch
333320
final batch = db.batch();
334321

@@ -453,9 +440,9 @@ batch.commit().then(() => {
453440
}
454441

455442
void getDataOnce_customObjects() {
456-
// [START get_data_once_custom_objects]
457443
// TODO: should this be included?
458444
// This isn't really specific to Firestore, it's just serdes
445+
// [START get_data_once_custom_objects]
459446
final docRef = db.collection("cities").doc("BJ");
460447
docRef.get().then((documentSnapshot) {
461448
final data = documentSnapshot.data() as Map<String, dynamic>;
@@ -586,9 +573,6 @@ batch.commit().then(() => {
586573

587574
void performSimpleAndCompoundQueries_exampleData() {
588575
// [START perform_simple_and_compound_queries_example_data]
589-
/*
590-
591-
*/
592576
final cities = db.collection("cities");
593577
final data1 = <String, dynamic>{
594578
"name": "San Francisco",
@@ -670,9 +654,6 @@ batch.commit().then(() => {
670654

671655
void performSimpleAndCompoundQueries_queryOperators() {
672656
// [START perform_simple_and_compound_queries_query_operators]
673-
/*
674-
675-
*/
676657
final citiesRef = db.collection("cities");
677658
final stateQuery = citiesRef.where("state", isEqualTo: "CA");
678659
final populationQuery = citiesRef.where("population", isLessThan: 100000);

0 commit comments

Comments
 (0)