Skip to content
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

Don't install existing apps during quick install unless forced #19

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

themadprofessor
Copy link
Contributor

No description provided.

ddotthomas

This comment was marked as resolved.

Copy link
Contributor

@ddotthomas ddotthomas left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Owner

@auyer auyer left a comment

Choose a reason for hiding this comment

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

Great idea ! Thanks!

Comment on lines +237 to +243
let mut release_list = helper_menus::multiple_select_menu(
"Select the versions you want to download :",
release_list,
) {
Ok(release_list) => release_list,
Err(e) => {
eprintln!("The tag list could not be processed.\nError: {}", e);
vec![]
}
};
).unwrap_or_else(|e| {
eprintln!("The tag list could not be processed.\nError: {}", e);
vec![]
});
Copy link
Owner

Choose a reason for hiding this comment

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

I don't see a reason for this change.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not certain on this, but I think someone on the Rust discord said unwrap_or_else might be worse for performance because it will run the closure inside of else even if the unwrap is successful, which doesn't happen with a match. I'm not sure if any of that's true however.

Copy link
Owner

Choose a reason for hiding this comment

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

Not that performance would matter in this case anyways. But still, I might revert this back to a match someday.

@auyer auyer added the 💅 Improvement Improvement that are not features label Mar 7, 2024
@auyer
Copy link
Owner

auyer commented Mar 7, 2024

Sorry for taking this long to check your PR. I had way too many work notifications in my github. I will merge it right now.

@auyer auyer merged commit 389e628 into auyer:main Mar 7, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 Improvement Improvement that are not features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants