From ead8748199ab86b95484bb996a4e56f690cb3c95 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 24 Jul 2012 12:57:37 -0700 Subject: [PATCH] Avoid unneeded branch in LocalAsyncBlobStore --- .../main/java/org/jclouds/blobstore/LocalAsyncBlobStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);