From 1652635ed8f2e1aabb79e4b6091a4ec479821fd4 Mon Sep 17 00:00:00 2001 From: Akkuman Date: Sat, 2 Dec 2023 19:16:47 +0800 Subject: [PATCH] fix: for of loop --- dist/index.js | 4 ++-- main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 55a0f98..dff389b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -40990,8 +40990,8 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { repo: repo, id: release_id, }) - for (const filepath in all_files) { - for (const attachment in attachments) { + for (const filepath of all_files) { + for (const attachment of attachments) { if (attachment.name === external_path_.basename(filepath)) { await client.repository.repoDeleteReleaseAttachment({ owner: owner, diff --git a/main.js b/main.js index a69fcb0..b5b7dbe 100644 --- a/main.js +++ b/main.js @@ -103,8 +103,8 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { repo: repo, id: release_id, }) - for (const filepath in all_files) { - for (const attachment in attachments) { + for (const filepath of all_files) { + for (const attachment of attachments) { if (attachment.name === path.basename(filepath)) { await client.repository.repoDeleteReleaseAttachment({ owner: owner,