Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
coderz-w committed Jun 12, 2024
1 parent c3cc93c commit 4c008be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traverseFileTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface InternalDataTransferItem extends DataTransferItem {
const traverseFileTree = (files: InternalDataTransferItem[], callback, isAccepted) => {
let restFile = files.length;
const flattenFileList = [];
function loopFiles(item: InternalDataTransferItem, callback) {
function loopFiles(item: InternalDataTransferItem, InnerCallback) {
const dirReader = item.createReader();
let fileList = [];

Expand All @@ -27,7 +27,7 @@ const traverseFileTree = (files: InternalDataTransferItem[], callback, isAccepte

if (isFinished) {
restFile = restFile - 1 + fileList.length;
callback(fileList);
InnerCallback(fileList);
} else {
sequence();
}
Expand Down

0 comments on commit 4c008be

Please sign in to comment.