Skip to content

Small refactors for Gem::Resolver#6766

Merged
hsbt merged 2 commits intomasterfrom
small-refactor
Jun 27, 2023
Merged

Small refactors for Gem::Resolver#6766
hsbt merged 2 commits intomasterfrom
small-refactor

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
@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
Contributor

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.

4 participants