Fix block statement code style. (#3493)

This commit is contained in:
Logan Smyth
2016-05-02 18:15:37 -07:00
committed by Henry Zhu
parent bf5de6bcb7
commit 9843c87573
12 changed files with 16 additions and 16 deletions

View File

@@ -327,14 +327,14 @@ export default function ({ types: t }) {
return {
visitor: {
ExportNamedDeclaration(path){
ExportNamedDeclaration(path) {
let declaration = path.get("declaration");
if (!declaration.isVariableDeclaration()) return;
if (!variableDeclarationHasPattern(declaration.node)) return;
let specifiers = [];
for (let name in path.getOuterBindingIdentifiers(path)){
for (let name in path.getOuterBindingIdentifiers(path)) {
let id = t.identifier(name);
specifiers.push(t.exportSpecifier(id, id));
}