Skip to content

Commit

Permalink
Fix deletedCount
Browse files Browse the repository at this point in the history
  • Loading branch information
hanquliu committed May 17, 2022
1 parent c12fddd commit 7fbeca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ module.exports = async (patterns, {force, dryRun, cwd = process.cwd(), onProgres

onProgress({
totalCount: files.length,
deletedCount: fileIndex,
percent: fileIndex / files.length
deletedCount: fileIndex + 1,
percent: (fileIndex + 1) / files.length
});

return file;
Expand Down

0 comments on commit 7fbeca0

Please sign in to comment.