mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-07 21:50:25 -06:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user