Skip to content

Commit 2b76a00

Browse files
authored
chore(lint): remove unused method to fix lint result (#143)
1 parent bc09adc commit 2b76a00

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/storage/object/put.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,6 @@ function createBucketIfMissing(client) {
5252
);
5353
}
5454

55-
/**
56-
* Check to see if the org is in the existing list of orgs
57-
*
58-
* @param {Object} env the cloud provider environment
59-
* @param {*} org the org associated with the bucket
60-
* @returns null
61-
*/
62-
async function checkOrgIndex(env, org) {
63-
const orgs = await env.DA_AUTH.get('orgs', { type: 'json' });
64-
if (orgs.some((existingOrg) => existingOrg.name === org)) return;
65-
orgs.push({ name: org, created: new Date().toISOString() });
66-
await env.DA_AUTH.put('orgs', JSON.stringify(orgs));
67-
}
68-
6955
export default async function putObject(env, daCtx, obj) {
7056
const config = getS3Config(env);
7157
const client = new S3Client(config);
@@ -74,8 +60,6 @@ export default async function putObject(env, daCtx, obj) {
7460

7561
// Only allow creating a new bucket for orgs and repos
7662
if (key.split('/').length <= 1) {
77-
// await checkOrgIndex(env, org);
78-
7963
// R2 ONLY FEATURE
8064
createBucketIfMissing(client);
8165
}

0 commit comments

Comments
 (0)