Skip to content

Commit

Permalink
Remove consolidatePaths from PackageFileFinder (jfrog#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva authored Nov 14, 2023
1 parent ba7a77b commit 432db7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public PackageFileFinder(Set<Path> projectPaths, Path basePath, String excludedP
this.exclusions = FileSystems.getDefault().getPathMatcher("glob:" + excludedPaths);
this.basePath = basePath;

for (Path projectPath : Utils.consolidatePaths(projectPaths)) {
for (Path projectPath : projectPaths) {
Files.walkFileTree(projectPath, this);
}
if (!excludedDirectories.isEmpty()) {
Expand All @@ -50,7 +50,7 @@ public PackageFileFinder(Set<Path> projectPaths, Path basePath, String excludedP
/**
* Get package.json directories and their directories.
*
* @return List of package.json's parent directories.
* @return Set of package.json's parent directories.
*/
public Set<String> getNpmPackagesFilePairs() {
Set<String> packageJsonDirectoriesSet = Sets.newHashSet(packageJsonDirectories);
Expand All @@ -62,7 +62,7 @@ public Set<String> getNpmPackagesFilePairs() {
/**
* Get package.json directories and their directories.
*
* @return List of yarn.lock's parent directories.
* @return Set of yarn.lock's parent directories.
*/
public Set<String> getYarnPackagesFilePairs() {
return Sets.newHashSet(yarnLockDirectories);
Expand All @@ -71,7 +71,7 @@ public Set<String> getYarnPackagesFilePairs() {
/**
* Get build.gradle and build.gradle.kts directories and their directories.
*
* @return List of build.gradle and build.gradle.kts's parent directories.
* @return Set of build.gradle and build.gradle.kts's parent directories.
*/
public Set<String> getBuildGradlePackagesFilePairs() {
return Sets.newHashSet(buildGradleDirectories);
Expand All @@ -80,7 +80,7 @@ public Set<String> getBuildGradlePackagesFilePairs() {
/**
* Get go.mod directories and their directories.
*
* @return List of go.mod's parent directories.
* @return Set of go.mod's parent directories.
*/
public Set<String> getGoPackagesFilePairs() {
return Sets.newHashSet(goModDirectories);
Expand Down

0 comments on commit 432db7c

Please sign in to comment.