Skip to content

Commit f69fbec

Browse files
authored
Merge branch 'master' into endpoints-update
2 parents 0d5137d + 090a336 commit f69fbec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

storage/json-api/src/main/java/StorageSample.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ public static List<StorageObject> listBucket(String bucketName)
5454
Storage.Objects.List listRequest = client.objects().list(bucketName);
5555

5656
List<StorageObject> results = new ArrayList<StorageObject>();
57-
Objects objects;
5857

5958
// Iterate through each page of results, and add them to our results list.
6059
do {
61-
objects = listRequest.execute();
60+
Objects objects = listRequest.execute();
6261
// Add the items in this page of results to the list we'll return.
6362
results.addAll(objects.getItems());
6463

@@ -165,7 +164,6 @@ public static void main(String[] args) {
165164
System.out.println(object.getName() + " (" + object.getSize() + " bytes)");
166165
}
167166

168-
169167
// Create a temp file to upload
170168
Path tempPath = Files.createTempFile("StorageSample", "txt");
171169
Files.write(tempPath, "Sample file".getBytes());

0 commit comments

Comments
 (0)