Skip to content

Commit

Permalink
Fix: typescript:S6660
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Oct 17, 2024
1 parent 6c2aa82 commit 4a6538d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/utils/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ export const getFilesWithExtension = (

if (fs.statSync(absolute).isDirectory()) {
getFiles(absolute, ext)
} else {
if (ext.includes(getFileExtension(absolute))) {
files.push(absolute)
}
} else if (ext.includes(getFileExtension(absolute))) {
files.push(absolute)
}
}
}
Expand Down

0 comments on commit 4a6538d

Please sign in to comment.