Skip to content

Commit

Permalink
Update analysisTool.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok authored Feb 10, 2022
1 parent 08a3b6f commit f96eac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysisTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class AnalysisTool {
(filename: string, data: string) => this.checkFileForScriptingLanguage(filename, data),
(filename: string, data: string) => this.checkFileForComponent(filename, data),
];
if (currentPath.substr(-3) === '.js' || this.fileHasTsExtension(currentPath) || currentPath.substr(-5) === '.html' || currentPath.substr(-5) === '.json') {
if ((currentPath.substr(-3) === '.js' || this.fileHasTsExtension(currentPath) || currentPath.substr(-5) === '.html' || currentPath.substr(-5) === '.json') && fs.lstatSync(currentPath).isFile()) {
this.analysisDetails.relevantFilesOrFolderCount++;
for (let test of tests) {
try {
Expand Down

0 comments on commit f96eac0

Please sign in to comment.