Skip to content

Fix #4207: Read whole zipfile before closing #4208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 29, 2018

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Mar 29, 2018

No description provided.

@Duhemm Duhemm requested a review from allanrenucci March 29, 2018 08:36
Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM. Thanks!

@@ -132,7 +132,7 @@ class InteractiveDriver(val settings: List[String]) extends Driver {

try {
for {
entry <- zipFile.stream.iterator().asScala
entry <- zipFile.stream.toArray((size: Int) => new Array[ZipEntry](size))
name = entry.getName
tastySuffix <- tastySuffixes
if name.endsWith(tastySuffix)
Copy link
Contributor

@allanrenucci allanrenucci Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're at it, can you change the two lines above to:

tastySuffix <- tastySuffixes.find(name.endsWith)

I've mistakenly changed it in 0ae6f04

@Duhemm Duhemm merged commit 99f1fd3 into scala:master Mar 29, 2018
@Duhemm Duhemm deleted the fix/4207 branch March 29, 2018 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants