Skip to content

Remove dead code in dependency installer tests#9371

Merged
hsbt merged 1 commit intomasterfrom
remove-dead-code
Mar 6, 2026
Merged

Remove dead code in dependency installer tests#9371
hsbt merged 1 commit intomasterfrom
remove-dead-code

Conversation

@hsbt
Copy link
Member

@hsbt hsbt commented Mar 6, 2026

From #9352

Remove unused si.to_yaml calls that stored YAML at URLs that were never
fetched. With the pure-Ruby parser, NilClass no longer has to_yaml, but
these lines were dead code regardless.
Copilot AI review requested due to automatic review settings March 6, 2026 06:21
@hsbt hsbt enabled auto-merge March 6, 2026 06:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes unused YAML-related setup from Gem::DependencyInstaller tests, aligning the test suite with current util_setup_spec_fetcher behavior and eliminating redundant @fetcher stubbing.

Changes:

  • Drop unused local variable assignments capturing util_setup_spec_fetcher’s return value.
  • Remove dead stubbing of @fetcher.data["http://gems.example.com/gems/yaml"] in two tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@hsbt hsbt merged commit 884d80f into master Mar 6, 2026
95 checks passed
@hsbt hsbt deleted the remove-dead-code branch March 6, 2026 06:48
hsbt added a commit that referenced this pull request Mar 10, 2026
Remove dead code in dependency installer tests

(cherry picked from commit 884d80f)
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.

2 participants