Skip to content

Commit a78f1b8

Browse files
committed
JS: Fix trailing whitespace
1 parent 6c9e35c commit a78f1b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ private static Path tryResolveWithExtensions(Path dir, String stem, Iterable<Str
636636
}
637637
return null;
638638
}
639-
639+
640640
/**
641641
* Returns an existing file named <code>dir/stem.ext</code> where <code>ext</code> is any TypeScript or JavaScript extension,
642642
* or <code>null</code> if no such file exists.
@@ -646,7 +646,7 @@ private static Path tryResolveTypeScriptOrJavaScriptFile(Path dir, String stem)
646646
if (resolved != null) return resolved;
647647
return tryResolveWithExtensions(dir, stem, FileType.JS.getExtensions());
648648
}
649-
649+
650650
/**
651651
* Gets a child of a JSON object as a string, or <code>null</code>.
652652
*/
@@ -681,7 +681,7 @@ protected DependencyInstallationResult installDependencies(Set<Path> filesToExtr
681681
if (!verifyYarnInstallation()) {
682682
return DependencyInstallationResult.empty;
683683
}
684-
684+
685685
final Path sourceRoot = Paths.get(".").toAbsolutePath();
686686
final Path virtualSourceRoot = Paths.get(EnvironmentVariables.getScratchDir()).toAbsolutePath();
687687

@@ -769,7 +769,7 @@ protected DependencyInstallationResult installDependencies(Set<Path> filesToExtr
769769
for (Path file : packageJsonFiles.keySet()) {
770770
Path relativePath = sourceRoot.relativize(file);
771771
Path virtualFile = virtualSourceRoot.resolve(relativePath);
772-
772+
773773
try {
774774
Files.createDirectories(virtualFile.getParent());
775775
try (Writer writer = Files.newBufferedWriter(virtualFile)) {
@@ -817,7 +817,7 @@ protected DependencyInstallationResult installDependencies(Set<Path> filesToExtr
817817
*/
818818
private Path guessPackageMainFile(Path packageJsonFile, JsonObject packageJson, Iterable<String> extensions) {
819819
Path packageDir = packageJsonFile.getParent();
820-
820+
821821
// Try <package_dir>/index.ts.
822822
Path resolved = tryResolveWithExtensions(packageDir, "index", extensions);
823823
if (resolved != null) {

0 commit comments

Comments
 (0)