Simplify for loop

This commit is contained in:
Dolan
2021-03-08 04:33:15 +00:00
parent 65302dd39b
commit 993782129c
2 changed files with 4 additions and 7 deletions

6
.nycrc
View File

@ -1,9 +1,9 @@
{ {
"check-coverage": true, "check-coverage": true,
"lines": 97.83, "lines": 97.85,
"functions": 94.33, "functions": 94.33,
"branches": 94.88, "branches": 94.99,
"statements": 97.82, "statements": 97.86,
"include": [ "include": [
"src/**/*.ts" "src/**/*.ts"
], ],

View File

@ -139,11 +139,8 @@ export class File {
} }
if (options.footnotes) { if (options.footnotes) {
// tslint:disable-next-line: forin
for (const key in options.footnotes) { for (const key in options.footnotes) {
if (!options.footnotes[key]) {
continue;
}
this.footnotesWrapper.View.createFootNote(parseFloat(key), options.footnotes[key].children); this.footnotesWrapper.View.createFootNote(parseFloat(key), options.footnotes[key].children);
} }
} }