remove catch

This commit is contained in:
SrGooglo 2024-11-04 13:30:21 +00:00
parent 1454d2f423
commit f53fab016e

View File

@ -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...")