Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannay Livneh committed Mar 7, 2021
1 parent dc93f2e commit d4e3db5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ast/nodes/shared/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,7 @@ export class NodeBase implements ExpressionNode {
if (this.hasOwnProperty(key)) continue;
const value = esTreeNode[key];
if (key === '_rollupAnnotations') {
if (this.annotations) {
this.annotations.push(...value);
} else {
this.annotations = value;
}
this.annotations = value;
} else if (typeof value !== 'object' || value === null) {
(this as GenericEsTreeNode)[key] = value;
} else if (Array.isArray(value)) {
Expand Down

0 comments on commit d4e3db5

Please sign in to comment.