Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: remove trivial type
  • Loading branch information
rishabh3112 committed May 31, 2019
1 parent a89645a commit 5e23da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/ast-utils.ts
Expand Up @@ -3,7 +3,7 @@ import * as validateIdentifier from "./validate-identifier";


function isImportPresent (j: JSCodeshift, ast: Node, path: string): boolean {
let isPresent: boolean = false;
let isPresent = false;
ast.find(j.CallExpression).forEach(callExp => {
if ((callExp.value as Node).callee.name === 'require' && (callExp.value as Node).arguments[0].value === path) {
isPresent = true;
Expand Down

0 comments on commit 5e23da2

Please sign in to comment.