added no-conditional-assignment rule and changed files to follow new rule

This commit is contained in:
Patrick O'Carroll
2018-09-05 10:53:58 +02:00
parent 72ab24f300
commit 777010b20b
9 changed files with 28 additions and 14 deletions

View File

@@ -36,10 +36,13 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
};
};
for (let i = 0, f; (f = files[i]); i++) {
let i = 0;
let f = files[i];
for (i; f; i++) {
const reader = new FileReader();
reader.onload = readerOnload();
reader.readAsText(f);
f = files[i];
}
}