support v 50 and 51 by not allowing const in loops

This commit is contained in:
Erica Wright 2017-07-27 11:03:54 -04:00
parent bb6c747297
commit 6111e71506
No known key found for this signature in database
GPG Key ID: D9F2AF9D67D0AAB7
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ $(document).ready(function() {
if (files.length === 0) { if (files.length === 0) {
toggleHeader(); toggleHeader();
} else { } else {
// eslint-disable-next-line prefer-const
for (let index in files) { for (let index in files) {
const id = files[index].fileId; const id = files[index].fileId;
//check if file still exists before adding to list //check if file still exists before adding to list

View File

@ -1,5 +1,6 @@
function arrayToHex(iv) { function arrayToHex(iv) {
let hexStr = ''; let hexStr = '';
// eslint-disable-next-line prefer-const
for (let i in iv) { for (let i in iv) {
if (iv[i] < 16) { if (iv[i] < 16) {
hexStr += '0' + iv[i].toString(16); hexStr += '0' + iv[i].toString(16);