Simplify for loop
This commit is contained in:
6
.nycrc
6
.nycrc
@ -1,9 +1,9 @@
|
||||
{
|
||||
"check-coverage": true,
|
||||
"lines": 97.83,
|
||||
"lines": 97.85,
|
||||
"functions": 94.33,
|
||||
"branches": 94.88,
|
||||
"statements": 97.82,
|
||||
"branches": 94.99,
|
||||
"statements": 97.86,
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
|
@ -139,11 +139,8 @@ export class File {
|
||||
}
|
||||
|
||||
if (options.footnotes) {
|
||||
// tslint:disable-next-line: forin
|
||||
for (const key in options.footnotes) {
|
||||
if (!options.footnotes[key]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
this.footnotesWrapper.View.createFootNote(parseFloat(key), options.footnotes[key].children);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user