james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [09/17] james-project git commit: JAMES-2525 Reindent to improve readability
Date Mon, 15 Oct 2018 06:28:32 GMT
JAMES-2525 Reindent to improve readability


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/bf8f52f0
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/bf8f52f0
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/bf8f52f0

Branch: refs/heads/master
Commit: bf8f52f0c666875323d687d84152faacf5a0fe4b
Parents: a9c9197
Author: Raphael Ouazana <raphael.ouazana@linagora.com>
Authored: Thu Oct 11 11:43:57 2018 +0200
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Mon Oct 15 13:17:08 2018 +0700

----------------------------------------------------------------------
 .../blob/objectstorage/ObjectStorageBlobsDAO.java    | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/bf8f52f0/server/blob/blob-objectstorage/src/main/java/org/apache/james/blob/objectstorage/ObjectStorageBlobsDAO.java
----------------------------------------------------------------------
diff --git a/server/blob/blob-objectstorage/src/main/java/org/apache/james/blob/objectstorage/ObjectStorageBlobsDAO.java
b/server/blob/blob-objectstorage/src/main/java/org/apache/james/blob/objectstorage/ObjectStorageBlobsDAO.java
index 1e0d12a..80a368a 100644
--- a/server/blob/blob-objectstorage/src/main/java/org/apache/james/blob/objectstorage/ObjectStorageBlobsDAO.java
+++ b/server/blob/blob-objectstorage/src/main/java/org/apache/james/blob/objectstorage/ObjectStorageBlobsDAO.java
@@ -70,14 +70,13 @@ public class ObjectStorageBlobsDAO implements BlobStore {
     }
 
     public CompletableFuture<ContainerName> createContainer(ContainerName name) {
-        return CompletableFuture.supplyAsync(() -> blobStore.createContainerInLocation(DEFAULT_LOCATION,
-            name.value())).thenApply(created -> {
-            if (created) {
-                return name;
-            } else {
-                throw new ObjectStoreException("Unable to create container " + name.value());
-            }
-        });
+        return CompletableFuture.supplyAsync(() -> blobStore.createContainerInLocation(DEFAULT_LOCATION,
name.value()))
+            .thenApply(created -> {
+                if (created) {
+                    return name;
+                } else {
+                    throw new ObjectStoreException("Unable to create container " + name.value());
+                }});
     }
 
     @Override


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


Mime
View raw message