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 5152905 commit 235398a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 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

0 comments on commit 235398a

Please sign in to comment.