Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
optimizing ifs
  • Loading branch information
Siemienik authored Sep 21, 2023
commit 0e2170bf79d660c042e74c8e7fc35af5668bee8c
6 changes: 2 additions & 4 deletions lib/xlsx/xform/sheet/worksheet-xform.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,9 @@ class WorkSheetXform extends BaseXform {
return true;
}

if (!this.ignoreNodes.includes(node.name)) {
if (this.map[node.name] && !this.ignoreNodes.includes(node.name)) {
this.parser = this.map[node.name];
if (this.parser) {
this.parser.parseOpen(node);
}
this.parser.parseOpen(node);
}
return true;
}
Expand Down