From dad8da9368f652d8754583dc2c63daa84d5447a4 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 2 May 2022 20:23:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/firestore/AggregateDemo.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/AggregateDemo.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/AggregateDemo.java index 07c9330a5..6deec3487 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/AggregateDemo.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/AggregateDemo.java @@ -213,16 +213,14 @@ public static void Demo11_MultipleAggregations(Firestore db) throws Exception { } public static void Demo12_Transaction(Firestore db) throws Exception { - db.runTransaction(txn -> { - AggregateQuery query = db - .collection("games") - .document("halo") - .collection("players") - .aggregate(count()); - AggregateQuerySnapshot snapshot = txn.get(query).get(); - assertEqual(snapshot.get(count()), 5_000_000); - return null; - }); + db.runTransaction( + txn -> { + AggregateQuery query = + db.collection("games").document("halo").collection("players").aggregate(count()); + AggregateQuerySnapshot snapshot = txn.get(query).get(); + assertEqual(snapshot.get(count()), 5_000_000); + return null; + }); } private static void assertEqual(Long num1, Long num2) {