Skip to content

Commit

Permalink
use == where type may be different - line 726 requires it
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Mar 28, 2023
1 parent 50b17bd commit d556a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/fileupload2.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ async function uploadFileDirectly(urls, storageId, filesize) {
var upload = null;
//As long as we have the right file size, we're OK
for (i = 0; i < fileList.length; i++) {
if (fileList[i].file.size === filesize) {
if (fileList[i].file.size == filesize) {
upload = fileList.splice(i, 1)[0];
break;
}
Expand Down Expand Up @@ -825,7 +825,7 @@ async function directUploadFinished() {
entry.checksum['@type'] = checksumAlgName;
entry.checksum['@value'] = fup.hashVal;
entry.mimeType = fup.file.type;
if (entry.mimeType === '') {
if (entry.mimeType == '') {
entry.mimeType = 'application/octet-stream';
}
body.push(entry);
Expand Down

0 comments on commit d556a99

Please sign in to comment.