Skip to content

Commit

Permalink
fix: bail early if no fixable projects
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Apr 16, 2021
1 parent 84b314f commit 1dfad93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/snyk-fix/src/plugins/python/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export async function pythonFix(
Object.keys(entitiesPerType),
async (projectType) => {
const projectsToFix: EntityToFix[] = entitiesPerType[projectType];

if (!projectsToFix.length) {
return;
}
const processingMessage = `Processing ${projectsToFix.length} ${projectType} items`;
spinner.text = processingMessage;
spinner.render();
Expand Down

0 comments on commit 1dfad93

Please sign in to comment.