Skip to content

Commit

Permalink
feat: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
coderz-w committed Jul 11, 2024
1 parent 56ccb4c commit 523a319
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/traverseFileTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ const traverseFileTree = (files: InternalDataTransferItem[], callback, isAccepte
progressFileList.push(...entryList);
// Check if all the file has been viewed
const isFinished = !entryList.length;
if (isFinished) {
return;
} else {
if (!isFinished) {
sequence();
}
});
Expand Down

0 comments on commit 523a319

Please sign in to comment.