fix(S3): change to void

This commit is contained in:
Manuel Jenny 2021-04-29 13:11:00 +02:00
parent c55dc62d16
commit 554cf5f42a
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18

View File

@ -109,11 +109,10 @@ class S3Impl {
return S3CloudNodeFactory.folder(parent, name, parent.getKey() + name);
}
public boolean bucketExists() throws BackendException {
if (client().doesBucketExist(cloud.s3Bucket())) {
public void bucketExists() throws BackendException {
if (!client().doesBucketExist(cloud.s3Bucket())) {
throw new NoSuchBucketException(cloud.s3Bucket());
}
return true;
}
public boolean exists(S3Node node) {