Skip to content

Conversation

@petrberan
Copy link
Member

@petrberan petrberan requested review from xjusko and xstefank July 23, 2024 14:44
try {
downloaded = runDownloadExecution(mavenDistribution, target).await();
} catch (ExecutionException ee) {
if (expectedSize == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand what are you doing here, but if you run this only only first iteration, then why not to move it before the loop.

Copy link
Member Author

Choose a reason for hiding this comment

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

In case of IOException caused by the HttpURLConnection the block will be run again. Moving it before the loop would mean to have another loop for this case

@petrberan petrberan merged commit cb6e9e2 into shrinkwrap:master Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants