Skip to content

Remove extra conditional from FakeStorageRpc#list  #210

@athakor

Description

@athakor

Remaining clean up from PR #208
From: @frankyn
File: https://github.com/googleapis/java-storage-nio/blob/master/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/testing/FakeStorageRpc.java

Saw this after, but it can help to modify the first conditional, to short circuit sooner in the sequence of code.

if (!so.getBucket().equals(bucket) || !so.getName().startsWith(prefix)) {
        continue;
}

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/java-storage-nio API.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions