diff --git a/frontend/src/upload.js b/frontend/src/upload.js index 205eb3c4..ab8a0c13 100644 --- a/frontend/src/upload.js +++ b/frontend/src/upload.js @@ -80,6 +80,7 @@ $(document).ready(function() { if (files.length === 0) { toggleHeader(); } else { + // eslint-disable-next-line prefer-const for (let index in files) { const id = files[index].fileId; //check if file still exists before adding to list diff --git a/frontend/src/utils.js b/frontend/src/utils.js index 18304905..8fd08ccd 100644 --- a/frontend/src/utils.js +++ b/frontend/src/utils.js @@ -1,5 +1,6 @@ function arrayToHex(iv) { let hexStr = ''; + // eslint-disable-next-line prefer-const for (let i in iv) { if (iv[i] < 16) { hexStr += '0' + iv[i].toString(16);