Skip to content

Commit

Permalink
Fix Filepath without extension
Browse files Browse the repository at this point in the history
Ex: Dockerfile
filePath was undefined and so crashed in path.extname(filePath);
  • Loading branch information
skeetmtp committed Jan 9, 2024
1 parent 1f57b9b commit d1b07c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ function getAbsFilePath(filePath) {

function handleFile(_filePath, appPath, onFile, cachedParsedFile) {
const filePath = getAbsFilePath(_filePath);
if (!filePath) {
return;
}

if (!shouldParse(filePath) || handledFiles.has(filePath)) {
return;
Expand Down

0 comments on commit d1b07c6

Please sign in to comment.