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