Skip to content

Commit da3c441

Browse files
committed
Remove unnecessary lines from landing page examples
1 parent 3123b93 commit da3c441

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/site/resources/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,15 @@ <h4>Example: Retrieve Datastore Entries</h4>
142142
import com.google.gcloud.datastore.Key;
143143
import com.google.gcloud.datastore.KeyFactory;
144144

145-
146145
// Authentication is automatic inside Google Compute Engine
147146
// and Google App Engine.
148147
DatastoreOptions options = DatastoreOptions.builder().build();
149-
150148
Datastore datastore = DatastoreFactory.instance().get(options);
151149
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);
152150
Key key = keyFactory.newKey(keyName);
153151
Entity entity = datastore.get(key);
154152

153+
155154
</code></pre></div>
156155

157156
<div hljs="" language="java" ng-show="selected == 'elsewhere'" class=""><pre>
@@ -167,7 +166,6 @@ <h4>Example: Retrieve Datastore Entries</h4>
167166
.projectId(<span class="hljs-string">PROJECT_ID</span>)
168167
.authCredentials(AuthCredentials.createForJson(
169168
new FileInputStream(<span class="hljs-string">PATH_TO_JSON_KEY</span>))).build();
170-
171169
Datastore datastore = DatastoreFactory.instance().get(options);
172170
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);
173171
Key key = keyFactory.newKey(keyName);

0 commit comments

Comments
 (0)