Commit ca16bc4b authored by lujie's avatar lujie
Browse files

use Google Java Format

1 merge request!2661resource leak due Files.list
Pipeline #800 failed with stages
in 0 seconds
Showing with 2 additions and 2 deletions
+2 -2
......@@ -57,8 +57,8 @@ public class MovePythonWhlDataStep implements Step {
// to just list the couple of entries inside of the root of the extracted dir, rather than
// parsing out the *.dist-info/METADATA file (we also would need the package name/version
// anyways to find the .dist-info dir.
Optional<Path> dataDir = null;
try(Stream<Path> list = Files.list(resolvedWhlDir)) {
Optional<Path> dataDir = Optional.empty();
try (Stream<Path> list = Files.list(resolvedWhlDir)) {
dataDir = list.filter(
path -> path.getFileName().toString().endsWith(".data") && Files.isDirectory(path))
.findFirst();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment