tslint: Enable prefer-for-of
This is not a big deal, but I think it makes the code a bit nicer.
This commit is contained in:
parent
e0ed9f71b8
commit
186115cf7a
2 changed files with 1 additions and 3 deletions
|
|
@ -93,8 +93,7 @@ export class MINode implements MIInfo {
|
|||
path = path.substr(target[0].length);
|
||||
if (current.length && typeof current != "string") {
|
||||
const found = [];
|
||||
for (let i = 0; i < current.length; i++) {
|
||||
const element = current[i];
|
||||
for (const element of current) {
|
||||
if (element[0] == target[1]) {
|
||||
found.push(element[1]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue