Skip to content

Commit 33f4341

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 27df71d commit 33f4341

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/exp/ts-transform-import-path.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ function visitNodeAndChildren(node, context) {
4646

4747
function visitNode(node) {
4848
let importPath;
49-
if ((ts.isImportDeclaration(node) || ts.isExportDeclaration(node)) && node.moduleSpecifier) {
49+
if (
50+
(ts.isImportDeclaration(node) || ts.isExportDeclaration(node)) &&
51+
node.moduleSpecifier
52+
) {
5053
const importPathWithQuotes = node.moduleSpecifier.getText();
5154
importPath = importPathWithQuotes.substr(
5255
1,

0 commit comments

Comments
 (0)