Skip to content

Fix GetRootSymbols missing return #923

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

Merged
merged 1 commit into from
May 23, 2025
Merged

Conversation

jakebailey
Copy link
Member

Found in #717.

@Copilot Copilot AI review requested due to automatic review settings May 23, 2025 16:23
Copy link
Contributor

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

This PR fixes a missing early return in GetRootSymbols, ensuring that once root symbols are collected recursively, the result is immediately returned instead of falling through to the default case.

  • Added return result inside the recursion branch of GetRootSymbols
Comments suppressed due to low confidence (1)

internal/checker/services.go:344

  • Add unit tests for GetRootSymbols covering cases where symbols have multiple levels of roots to ensure the new return path produces the correct flattened list.
return result

Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

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

Oops! Thanks for fixing this.

@jakebailey jakebailey added this pull request to the merge queue May 23, 2025
Merged via the queue into main with commit 0a11b9f May 23, 2025
23 checks passed
@jakebailey jakebailey deleted the jabaile/fix-GetRootSymbols branch May 23, 2025 16:56
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