mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +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...")
|
||||
|
||||
// check connection with s3
|
||||
const bucketExists = await this.bucketExists(this.defaultBucket).catch(() => {
|
||||
return false
|
||||
})
|
||||
const bucketExists = await this.bucketExists(this.defaultBucket)
|
||||
|
||||
if (!bucketExists) {
|
||||
console.warn("🪣 Default bucket not exists! Creating new bucket...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user