Skip to content

Commit

Permalink
chore: remove unchecked call warning (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
suraj-qlogic committed Jul 27, 2020
1 parent 3e06bd5 commit 0e21b76
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -108,15 +108,14 @@ private CloudStorageReadChannel(
this.config = config;
// get the generation, enshrine that in our options
fetchSize(gcsStorage, userProject, file);
List options = Lists.newArrayList(blobSourceOptions);
List<BlobSourceOption> options = Lists.newArrayList(blobSourceOptions);
if (null != generation) {
options.add(Storage.BlobSourceOption.generationMatch(generation));
}
if (!Strings.isNullOrEmpty(userProject)) {
options.add(BlobSourceOption.userProject(userProject));
}
this.blobSourceOptions =
(BlobSourceOption[]) options.toArray(new BlobSourceOption[options.size()]);
this.blobSourceOptions = options.toArray(new BlobSourceOption[options.size()]);

// innerOpen checks that it sees the same generation as fetchSize did,
// which ensure the file hasn't changed.
Expand Down

0 comments on commit 0e21b76

Please sign in to comment.