Skip to content

Commit

Permalink
Update license-scanner/scanner.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp authored Sep 18, 2024
1 parent efabbf4 commit 6192e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion license-scanner/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const scan = async function (options: ScanOptions): Promise<ScanResult> {
logger.debug(`Excluding file ${file.path}`);
continue toNextFile;
}
if (fileExtensions.length > 0 && !fileExtensions.some((ext) => file.path.endsWith(ext))) {
if (!fileExtensions.some((ext) => file.path.endsWith(ext))) {
continue toNextFile;
}
tracker.setFileKey(file.path, key);
Expand Down

0 comments on commit 6192e47

Please sign in to comment.