Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
buck
Commits
ca16bc4b
Commit
ca16bc4b
authored
3 years ago
by
lujie
Browse files
Options
Download
Email Patches
Plain Diff
use Google Java Format
parent
f9ee4bc1
github/fork/lujiefsi/MovePythonWhlDataStep
1 merge request
!2661
resource leak due Files.list
Pipeline
#800
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/com/facebook/buck/features/python/MovePythonWhlDataStep.java
+2
-2
.../facebook/buck/features/python/MovePythonWhlDataStep.java
with
2 additions
and
2 deletions
+2
-2
src/com/facebook/buck/features/python/MovePythonWhlDataStep.java
+
2
-
2
View file @
ca16bc4b
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets