From 17f92aa34a2fd2fe54f3166887d9beae8918c11b Mon Sep 17 00:00:00 2001 From: David Bosschaert Date: Tue, 24 Jun 2025 12:46:29 +0100 Subject: [PATCH] chore(lint): remove unused method to fix lint result --- src/storage/object/put.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/storage/object/put.js b/src/storage/object/put.js index 36f2611b..06c9513c 100644 --- a/src/storage/object/put.js +++ b/src/storage/object/put.js @@ -52,20 +52,6 @@ function createBucketIfMissing(client) { ); } -/** - * Check to see if the org is in the existing list of orgs - * - * @param {Object} env the cloud provider environment - * @param {*} org the org associated with the bucket - * @returns null - */ -async function checkOrgIndex(env, org) { - const orgs = await env.DA_AUTH.get('orgs', { type: 'json' }); - if (orgs.some((existingOrg) => existingOrg.name === org)) return; - orgs.push({ name: org, created: new Date().toISOString() }); - await env.DA_AUTH.put('orgs', JSON.stringify(orgs)); -} - export default async function putObject(env, daCtx, obj) { const config = getS3Config(env); const client = new S3Client(config); @@ -74,8 +60,6 @@ export default async function putObject(env, daCtx, obj) { // Only allow creating a new bucket for orgs and repos if (key.split('/').length <= 1) { - // await checkOrgIndex(env, org); - // R2 ONLY FEATURE createBucketIfMissing(client); }