chore: Amend empty blocks in upload.js

/puter/packages/puter-js/src/modules/FileSystem/operations/upload.js
   63:22  error  Empty block statement  no-empty
  173:22  error  Empty block statement  no-empty
This commit is contained in:
Sam Atkins
2024-05-02 17:31:17 +01:00
parent 52d5299374
commit fa3b86fa7e

View File

@@ -60,8 +60,6 @@ const upload = async function(items, dirPath, options = {}){
for(let i=0; i<items.length; i++){
if(items[i] instanceof DataTransferItem || items[i] instanceof DataTransferItemList){
seemsToBeParsedDataTransferItems = true;
}else{
}
}
}
@@ -171,6 +169,7 @@ const upload = async function(items, dirPath, options = {}){
return reject({code: 'NOT_ENOUGH_SPACE', message: 'Not enough storage space available.'});
}
}catch(e){
// Ignored
}
}