Skip to content

Commit

Permalink
Merge pull request apache#7693 from trixon/janitor-copy-paste-error
Browse files Browse the repository at this point in the history
Fix Janitor directory comparison.
  • Loading branch information
ebarboni authored Sep 2, 2024
2 parents dc64125 + 5ce687f commit ed263f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static List<CleanupPair> getCandidates() {
if (cacheDir != null) {
File cacheParent = cacheDir.getParentFile();
for (File f : cacheParent.listFiles()) {
if (f.isDirectory() && !f.equals(userDir)) {
if (f.isDirectory() && !f.equals(cacheDir)) {
names.add(f.getName());
}
}
Expand Down

0 comments on commit ed263f6

Please sign in to comment.