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

Fixed Bug in registry/EmptySets #275

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

nathannaveen
Copy link
Contributor

  • The exists map is always empty so it can't contain anything.

Signed-off-by: nathannaveen 42319948+nathannaveen@users.noreply.github.com

- The exists map is always empty so it can't contain anything.

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
@calebbrown
Copy link
Contributor

I think you've found a bug. At the end of the loop there should be:

exists[c.EmptySet().Namespace()] = empty{}

This is important for when GitLab support is added and returns IssueSet and RepoSet.

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
@nathannaveen nathannaveen changed the title Removed Dead Code from registry/EmptySets Fixed Bug in registry/EmptySets Dec 8, 2022
@nathannaveen
Copy link
Contributor Author

I think you've found a bug. At the end of the loop there should be:

exists[c.EmptySet().Namespace()] = empty{}

This is important for when GitLab support is added and returns IssueSet and RepoSet.

Fixed the bug!

Copy link
Contributor

@calebbrown calebbrown left a comment

Choose a reason for hiding this comment

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

Thanks!

@calebbrown calebbrown merged commit 95942e0 into ossf:main Dec 8, 2022
nathannaveen added a commit to nathannaveen/criticality_score that referenced this pull request Feb 9, 2023
* Removed Dead Code from registry/EmptySets

- The exists map is always empty so it can't contain anything.

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>

* Fixed bug

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
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.

None yet

2 participants