mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 17:47:38 +01:00
Fixed dumb infinite recursion
Affects issues: - Fixed the second issue in #1866
This commit is contained in:
parent
4cf5b79b15
commit
3df7be9ee9
@ -77,10 +77,11 @@ public class OldDependencyCacheDeletionTask extends TaskSystem.Task {
|
|||||||
if (files == null) return;
|
if (files == null) return;
|
||||||
for (File file : files) {
|
for (File file : files) {
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
deleteDirectory(directory);
|
deleteDirectory(file);
|
||||||
} else {
|
} else {
|
||||||
Files.delete(file.toPath());
|
Files.delete(file.toPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Files.delete(directory.toPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user