Fix sonar

This commit is contained in:
amcmanu3 2024-07-08 19:23:46 -04:00
parent 87c559ae66
commit eefbc81538

View File

@ -115,8 +115,7 @@ async function uploadFile(type, file = null, path = null, file_num = 0, _onProgr
window.location.reload();
},
});
} else {
if (type !== "server_upload") {
} else if (type !== "server_upload") {
// All promises resolved successfully
$("#upload_input").html(`<div class="card-header header-sm d-flex justify-content-between align-items-center" style="width: 100%;"><input value="${file.name}" type="text" id="file-uploaded" disabled></input> 🔒</div>`);
if (type === "import") {
@ -170,7 +169,6 @@ async function uploadFile(type, file = null, path = null, file_num = 0, _onProgr
$(`#upload-progress-bar-${file_num + 1}`).html('<i style="color: black;" class="fas fa-box-check"></i>');
}
}
}
async function calculateFileHash(file) {
const arrayBuffer = await file.arrayBuffer();