Merge pull request #337 from mozilla/const-lint

support v 50 and 51 by not allowing const in loops
This commit is contained in:
Erica 2017-07-27 13:00:15 -04:00 committed by GitHub
commit 303b34a70b
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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);