Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Sep 26, 2016
1 parent f31947c commit 909b19a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/parser/statement.js
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,7 @@ pp.checkExport = function (node, checkNames, isDefault) {
} else if (node.specifiers && node.specifiers.length) {
// Named exports
for (let specifier of node.specifiers) {
const name = specifier.exported.name;
if (name === "default") isDefault = true;
this.checkDuplicateExports(specifier, name);
this.checkDuplicateExports(specifier, specifier.exported.name);
}
} else if (node.declaration) {
// Exported declarations
Expand Down Expand Up @@ -948,7 +946,7 @@ pp.checkDeclaration = function(node) {
this.checkDeclaration(elem);
}
} else if (node.type === "ObjectProperty") {
this.checkDeclaration(node.value);
this.checkDeclaration(node.value);
} else if (node.type === "Identifier") {
this.checkDuplicateExports(node, node.name);
}
Expand Down

0 comments on commit 909b19a

Please sign in to comment.