diff --git a/blobstore/src/main/java/org/jclouds/blobstore/LocalAsyncBlobStore.java b/blobstore/src/main/java/org/jclouds/blobstore/LocalAsyncBlobStore.java index 16fc21bf63..3685758b65 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/LocalAsyncBlobStore.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/LocalAsyncBlobStore.java @@ -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 commonPrefixes = newTreeSet( transform(contents, new CommonPrefixes(prefix, delimiter))); commonPrefixes.remove(CommonPrefixes.NO_PREFIX);