Update javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Asger F
2025-11-04 09:51:56 +01:00
committed by GitHub
parent c4d23d16ed
commit 105213df03

View File

@@ -489,7 +489,7 @@ public class AutoBuild {
diagnosticsToClose.forEach(DiagnosticWriter::close);
}
// Fail extraction is no relevant files were found.
// Fail extraction if no relevant files were found.
if (!seenFiles || !hasSeenCode() && !EnvironmentVariables.isActionsExtractor()) {
if (seenFiles) {
warn("Only found JavaScript or TypeScript files that were empty or contained syntax errors.");