Skip to content

Commit

Permalink
update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Nov 1, 2023
1 parent 18ceac0 commit b28d5d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utilities/remove-deleted-pubcode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ async function doProcess() {
await getYamlFromRepo(repoName, defaultBranch);
}catch (e){
if (e.response?.status === 404) {
item.is_deleted = true;
results.push(repoName);
}
}
results.push(repoName);
} catch (error) {
console.error(`Failed to fetch data for ${item.repo_name}:`, error);
process.exit(1);
Expand Down

0 comments on commit b28d5d9

Please sign in to comment.