mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
remove catch
This commit is contained in:
parent
1454d2f423
commit
f53fab016e
@ -58,9 +58,7 @@ export class StorageClient extends Minio.Client {
|
|||||||
console.log("🔌 Checking if storage client have default bucket...")
|
console.log("🔌 Checking if storage client have default bucket...")
|
||||||
|
|
||||||
// check connection with s3
|
// check connection with s3
|
||||||
const bucketExists = await this.bucketExists(this.defaultBucket).catch(() => {
|
const bucketExists = await this.bucketExists(this.defaultBucket)
|
||||||
return false
|
|
||||||
})
|
|
||||||
|
|
||||||
if (!bucketExists) {
|
if (!bucketExists) {
|
||||||
console.warn("🪣 Default bucket not exists! Creating new bucket...")
|
console.warn("🪣 Default bucket not exists! Creating new bucket...")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user