Skip to content

Commit

Permalink
removeNodeAttrs: drop unnecessary conditional
Browse files Browse the repository at this point in the history
Suggested by @jameshadfield in review
<#1924 (comment)>
  • Loading branch information
joverlee521 committed Jan 21, 2025
1 parent 921161c commit aead1cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util/treeMiscHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,7 @@ export const removeNodeAttrs = (nodes, attrsToRemove) => {
if(!node.node_attrs) return;

attrsToRemove.forEach((attrName) => {
if(attrName in node.node_attrs){
delete node.node_attrs[attrName];
}
delete node.node_attrs[attrName];
})
})
}

0 comments on commit aead1cf

Please sign in to comment.