Avoid unneeded branch in LocalAsyncBlobStore

This commit is contained in:
Andrew Gaul 2012-07-24 12:57:37 -07:00 committed by Andrew Gaul
parent 3e2e24493e
commit ead8748199
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);