mirror of https://github.com/apache/jclouds.git
Avoid unneeded branch in LocalAsyncBlobStore
This commit is contained in:
parent
3e2e24493e
commit
ead8748199
|
@ -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