mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 23:55:52 +00:00
Miscellaneous code cleanup (#9384)
This commit is contained in:
1 parent
307ec7e2c7
commit
8793619682
26 files changed
+37
-43
No files matched your search
@@ -1444,7 +1444,7 @@ public final class FilePath implements SerializableOnlyOverRemoting {
|
||||
public Void invoke(File f, VirtualChannel channel) throws IOException {
|
||||
for (File file : listParentFiles(f)) {
|
||||
if (file.getName().startsWith(f.getName() + WorkspaceList.COMBINATOR)) {
|
||||
Util.deleteRecursive(file.toPath(), path -> path.toFile());
|
||||
Util.deleteRecursive(file.toPath(), Path::toFile);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1475,7 +1475,7 @@ public final class FilePath implements SerializableOnlyOverRemoting {
|
||||
|
||||
@Override
|
||||
public Void invoke(File f, VirtualChannel channel) throws IOException {
|
||||
Util.deleteRecursive(fileToPath(f), path -> path.toFile());
|
||||
Util.deleteRecursive(fileToPath(f), Path::toFile);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1492,7 +1492,7 @@ public final class FilePath implements SerializableOnlyOverRemoting {
|
||||
|
||||
@Override
|
||||
public Void invoke(File f, VirtualChannel channel) throws IOException {
|
||||
Util.deleteContentsRecursive(fileToPath(f), path -> path.toFile());
|
||||
Util.deleteContentsRecursive(fileToPath(f), Path::toFile);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user