mirror of https://github.com/apache/jclouds.git
Merge pull request #755 from andrewgaul/local-async-blobstore-avoid-branch
Avoid unneeded branch in LocalAsyncBlobStore
This commit is contained in:
commit
9edc86eac7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue