Skip to content

Commit f36aadc

Browse files
Removed async/await
Signed-off-by: Aayush Chouhan <[email protected]>
1 parent 85fe071 commit f36aadc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sdk/bucketspace_fs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
272272
}
273273
if (!bucket) return;
274274

275-
if (!await this.has_bucket_ownership_permission(bucket, account)) return;
275+
if (!this.has_bucket_ownership_permission(bucket, account)) return;
276276

277277
const fs_accessible = await this.validate_fs_bucket_access(bucket, object_sdk);
278278
if (!fs_accessible) return;
@@ -955,9 +955,9 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
955955
*
956956
* @param {Record<string, any>} bucket
957957
* @param {Record<string, any>} account
958-
* @returns {Promise<boolean>}
958+
* @returns {boolean}
959959
*/
960-
async has_bucket_ownership_permission(bucket, account) {
960+
has_bucket_ownership_permission(bucket, account) {
961961
// check direct ownership
962962
if (this.is_bucket_owner(bucket, account)) return true;
963963

0 commit comments

Comments
 (0)