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

Small refactors for Gem::Resolver #6766

Merged
merged 2 commits into from Jun 27, 2023
Merged

Small refactors for Gem::Resolver #6766

merged 2 commits into from Jun 27, 2023

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented Jun 22, 2023

What was the end-user or developer problem that led to this PR?

Gem::Resolver have some of unused or unnecessary variables.

What is your fix for the problem, implemented in this PR?

I removed them.

  • @missing is unused variable in RubyGems.
  • The default 2nd argument of Molinillo::Resolver#resolve is instance of Molinillo::DependencyGraph. So, we don't need to pass it from Gem::Resolver.

Make sure the following tasks are checked

@hsbt hsbt merged commit f3fa278 into master Jun 27, 2023
83 checks passed
@hsbt hsbt deleted the small-refactor branch June 27, 2023 02:15
@@ -38,8 +38,6 @@ class Gem::Resolver
##
# List of dependencies that could not be found in the configured sources.
Copy link
Member

Choose a reason for hiding this comment

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

This comment should also be removed, since it was the documentation for #missing

hsbt added a commit that referenced this pull request Jun 27, 2023
hsbt added a commit that referenced this pull request Jun 27, 2023
matzbot pushed a commit to ruby/ruby that referenced this pull request Jun 27, 2023
@deivid-rodriguez deivid-rodriguez changed the title Small refactor for Gem::Resolver Small refactors for Gem::Resolver Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants