Skip to content

Commit 8e3f4ae

Browse files
committed
chore: update variable name
1 parent 8609b2b commit 8e3f4ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/utils/ast-utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ function isImportPresent(j: JSCodeshift, ast: Node, path: string): boolean {
55
if (typeof path !== "string") {
66
throw new Error(`path parameter should be string, recieved ${typeof path}`);
77
}
8-
let isPresent = false;
8+
let importExists = false;
99
ast.find(j.CallExpression).forEach(
1010
(callExp: Node): void => {
1111
if (
1212
(callExp.value as Node).callee.name === "require" &&
1313
(callExp.value as Node).arguments[0].value === path
1414
) {
15-
isPresent = true;
15+
importExists = true;
1616
}
1717
}
1818
);
19-
return isPresent;
19+
return importExists;
2020
}
2121

2222
/**

0 commit comments

Comments
 (0)