Skip to content

Commit be2818b

Browse files
committed
Revert "JS: Fix check to account for override in tests"
This reverts commit 81bb07a.
1 parent d297dcd commit be2818b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,7 @@ public int run() throws IOException {
490490
}
491491

492492
// Fail extraction if no relevant files were found.
493-
boolean seenRelevantFiles = EnvironmentVariables.isActionsExtractor()
494-
? seenFiles // assume all files are relevant for Actions extractor
495-
: hasSeenCode();
496-
if (!seenRelevantFiles) {
493+
if (!seenFiles || !hasSeenCode() && !EnvironmentVariables.isActionsExtractor()) {
497494
if (seenFiles) {
498495
warn("Only found JavaScript or TypeScript files that were empty or contained syntax errors.");
499496
} else {

0 commit comments

Comments
 (0)