fix: for of loop
This commit is contained in:
		
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -40990,8 +40990,8 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
 | 
				
			|||||||
    repo: repo,
 | 
					    repo: repo,
 | 
				
			||||||
    id: release_id,
 | 
					    id: release_id,
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
  for (const filepath in all_files) {
 | 
					  for (const filepath of all_files) {
 | 
				
			||||||
    for (const attachment in attachments) {
 | 
					    for (const attachment of attachments) {
 | 
				
			||||||
      if (attachment.name === external_path_.basename(filepath)) {
 | 
					      if (attachment.name === external_path_.basename(filepath)) {
 | 
				
			||||||
        await client.repository.repoDeleteReleaseAttachment({
 | 
					        await client.repository.repoDeleteReleaseAttachment({
 | 
				
			||||||
          owner: owner,
 | 
					          owner: owner,
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								main.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.js
									
									
									
									
									
								
							@@ -103,8 +103,8 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
 | 
				
			|||||||
    repo: repo,
 | 
					    repo: repo,
 | 
				
			||||||
    id: release_id,
 | 
					    id: release_id,
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
  for (const filepath in all_files) {
 | 
					  for (const filepath of all_files) {
 | 
				
			||||||
    for (const attachment in attachments) {
 | 
					    for (const attachment of attachments) {
 | 
				
			||||||
      if (attachment.name === path.basename(filepath)) {
 | 
					      if (attachment.name === path.basename(filepath)) {
 | 
				
			||||||
        await client.repository.repoDeleteReleaseAttachment({
 | 
					        await client.repository.repoDeleteReleaseAttachment({
 | 
				
			||||||
          owner: owner,
 | 
					          owner: owner,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user