Skip to content

Commit

Permalink
[@blocz/mdx-plugin-detect-imports] use break instead of continue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayc0 committed Feb 8, 2022
1 parent c3adaf7 commit ad8f201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mdx-plugin-detect-imports/src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ const generateImportStatements = (tree) => {
local: "${specifier.local.name}",
value: ${specifier.local.name}
}`);
continue;
break;
case "ImportDefaultSpecifier":
imports.push(`{
kind: "default",
local: "${specifier.local.name}",
value: ${specifier.local.name}
}`);
continue;
break;
case "ImportSpecifier":
imports.push(`{
kind: "named",
local: "${specifier.local.name}",
value: ${specifier.imported.name}
}`);
continue;
break;
default:
continue;
break;
}
}
//
Expand Down

0 comments on commit ad8f201

Please sign in to comment.