You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/04/27 02:19:48 UTC

[james-project] 12/14: JAMES-3140: remove unessesary check BucketName in CachedBlobStore read

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit f1d4273b8d59095ca725de9c5f9d6cfa23bf4125
Author: ducnv <du...@gmail.com>
AuthorDate: Fri Apr 24 14:55:03 2020 +0700

    JAMES-3140: remove unessesary check BucketName in CachedBlobStore read
---
 .../java/org/apache/james/blob/cassandra/cache/CachedBlobStore.java     | 2 --
 1 file changed, 2 deletions(-)

diff --git a/server/blob/blob-cassandra/src/main/java/org/apache/james/blob/cassandra/cache/CachedBlobStore.java b/server/blob/blob-cassandra/src/main/java/org/apache/james/blob/cassandra/cache/CachedBlobStore.java
index ad73648..51e8617 100644
--- a/server/blob/blob-cassandra/src/main/java/org/apache/james/blob/cassandra/cache/CachedBlobStore.java
+++ b/server/blob/blob-cassandra/src/main/java/org/apache/james/blob/cassandra/cache/CachedBlobStore.java
@@ -56,8 +56,6 @@ public class CachedBlobStore implements BlobStore {
 
     @Override
     public InputStream read(BucketName bucketName, BlobId blobId) throws ObjectStoreIOException, ObjectNotFoundException {
-        Preconditions.checkNotNull(bucketName, "bucketName should not be null");
-
         return Mono.just(bucketName)
             .filter(backend.getDefaultBucketName()::equals)
             .flatMap(ignored -> Mono.from(cache.read(blobId))


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org