From 8e9e14220bd496dddf2da06928d3b94096e7db61 Mon Sep 17 00:00:00 2001 From: Victor Chudnovsky Date: Fri, 16 Sep 2016 18:23:51 -0700 Subject: [PATCH] Comsetic changes. --- .../cloud/examples/datastore/snippets/TransactionSnippets.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/datastore/snippets/TransactionSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/datastore/snippets/TransactionSnippets.java index 1b1f145f0995..1d9942e6495a 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/datastore/snippets/TransactionSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/datastore/snippets/TransactionSnippets.java @@ -115,7 +115,7 @@ public boolean getMultiple() { // For tests. // TODO: Consider putting this block inside the try statement above so users can see the // expected output without even having to run the snippet. - boolean consistent = (result != null); + boolean consistent = result != null; if (consistent) { Entity entityFirst = result.next(); Entity entitySecond = result.next(); @@ -214,7 +214,6 @@ public boolean run() { .build(); QueryResults result = null; - Entity first = null; // Run the query try {