Merge pull request #755 from andrewgaul/local-async-blobstore-avoid-branch

Avoid unneeded branch in LocalAsyncBlobStore
This commit is contained in:
Adrian Cole 2012-07-26 17:03:49 -07:00
commit 9edc86eac7
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ public class LocalAsyncBlobStore extends BaseAsyncBlobStore {
}
}
final String delimiter = options.isRecursive() ? null : storageStrategy.getSeparator();
if (delimiter != null) {
if (!options.isRecursive()) {
String delimiter = storageStrategy.getSeparator();
SortedSet<String> commonPrefixes = newTreeSet(
transform(contents, new CommonPrefixes(prefix, delimiter)));
commonPrefixes.remove(CommonPrefixes.NO_PREFIX);